Control the media player
The media player in PowerPoint can be displayed during the slide show or during the authoring experience when you click on a media object based on the settings you chose. You can also control them programmatically via the object model in either view.
The example below illustrates how this can be done. One thing to note is that the slide with the media shape must be the active slide for the code to work. If the slide is not active you are bound to run into a variety of errors. You can test out the code by inserting a media object on the slide and then running PlayMediaInDocument or PlayMediaInSlideShow.
The media player object has several option to control the player including support to jump to previous/next bookmarks.
Supported versions: PowerPoint 2013 or later
' --------------------------------------------------------------------------------' Copyright ©1999-2022, Shyam Pillai, All Rights Reserved.' --------------------------------------------------------------------------------' You are free to use this code within your own applications, add-ins,' documents etc but you are expressly forbidden from selling or' otherwise distributing this source code without prior consent.' This includes both posting free demo projects made from this' code as well as reproducing the code in text or html format.' --------------------------------------------------------------------------------
|
Copyright 1999-2022 (c) Shyam Pillai. All rights reserved.