Media
Media enables the addition of audio, video, and online video to Slides.
Usage
Usage Notes
Either provide a URL location or base64 data along with type to create media.
type- type: media typepath- URL: relative or fulldata- base64: string representing an encoded image
Supported Formats and Notes
- Video (mpg, mov, mp4, m4v, et al.); Audio (mp3, wav, et al.); (see Video and Audio file formats supported in PowerPoint)
- YouTube videos can be viewed using Microsoft 365/Office 365 (they may show errors on older desktop PowerPoint versions)
- Other online video sites may be supported as well (users have reported non-YouTube sites that worked)
- Not all platforms support all formats. For example, macOS can play MPG files while Windows typically cannot, and AVI support varies by codec. Verify playback on the target platform before distributing a presentation.
Properties
Position/Size Props (PositionProps)
Data/Path Props (DataOrPathProps)
Media Props (MediaProps)
Example
