-
Notifications
You must be signed in to change notification settings - Fork 5
Adding Media Player
shoaibkhan-aspose edited this page Jul 21, 2014
·
3 revisions
//Create empty presentation instance
Presentation newPptx = new Presentation();
//Adding the Media Player ActiveX control
newPptx.getSlides().get_Item(0).getControls().addControl(ControlType.WindowsMediaPlayer, 50, 50, 550, 300);
//Access the Media Player ActiveX control and set the video path
newPptx.getSlides().get_Item(0).getControls().get_Item(0).getProperties().set_Item("URL", "C:\\Wildlife.wmv");
//Save the Presentation
newPptx.save("data/AsposeMediaPlayer.pptx", SaveFormat.Pptx);
Download Source Code
For further releases and updates, please follow these new repositories:
- Aspose.Words Java for Apache POI
- Aspose.Cells Java for Apache POI
- Aspose.Slides Java for Apache POI
- Aspose.Email Java for Apache POI
- For documentation, please visit Aspose Docs.
- Raise your queries and suggest more examples via Aspose Forums or via new social coding sites.