Embed video in PPT, add control button to control video playback

1. Convert MP4 format video to SWF format

        ① Use the "Format Factory" software;

        ②Click "Video" - "SWF" - "Select File" - "Output Configuration" - "OK" - "Start" in turn;

        ③ It is necessary to set the parameters in "Output Configuration", otherwise the video resolution after format conversion is not high.

2. Use Shockwave Flash Object control to embed SWF format video into PPT

        ①Click the "Other Controls" button in the "Developer Tools" (if there is no "Developer Tools" tab in the toolbar, you need to set it yourself in the "PowerPoint Options"); 

        ②Select the "Shockwave Flash Object" control (if there is no such control, you need to install "Adobe Flash Player", which can be downloaded from the flash official website); 

        ③Right click on the "Shockwave Flash Object" control to set properties;

        ④Set "EmbedMovie" to "True", "Movie" to the video path and file name, "Loop" to "False", and "Playing" to "False" ("Loop" indicates whether to play in a loop, "Playing "Indicates the playback state, the author does not want to play in a loop, but wants to set the button to achieve the effect of clicking to control video playback by changing the "Playing" property of the "Shockwave Flash Object" control);

3. Use CommandButton (command button) to control video playback

        ①Click the "Command Button" button in the "Developer Tools";

        ②Double-click the "CommandButton" control and add "ShockwaveFlash1.Playing = True" in the code, which means that when the button named "CommandButton1" is clicked, the "Playing" property of the "ShockwaveFlash1" control named "ShockwaveFlash1" is set to "True" to make it play;

        ③The VBA code was modified in the previous step, and it needs to be saved as a .pptm file to save the code.

 4. Effect

        Slideshow, click the "play button" to play the video.

 

Guess you like

Origin blog.csdn.net/weixin_50671288/article/details/125779933