Paper Office
paper-pptxAPI referenceenum.shapes

PP_MEDIA_TYPE

paper-pptx 0.2.0 API reference

Indicates the OLE media type.

Example::

from pptx.enum.shapes import PP_MEDIA_TYPE

movie = slide.shapes[0] assert movie.media_type == PP_MEDIA_TYPE.MOVIE

MS API Name: PpMediaType

https://msdn.microsoft.com/en-us/library/office/ff746008.aspx

Attributes

MIXED

attributeMIXED
= (-2, 'Return value only; indicates multiple media types, typically for a collection of shapes. May not be applicable in python-pptx.')

Return value only; indicates multiple media types.

Typically for a collection of shapes. May not be applicable in python-pptx.

MOVIE

attributeMOVIE
= (3, 'Video media such as MP4.')

Video media such as MP4.

OTHER

attributeOTHER
= (1, 'Other media types')

Other media types

SOUND

attributeSOUND
= (1, 'Audio media such as MP3.')

Audio media such as MP3.

On this page