media Function

Defined in pyglet.resource

media(self, name, streaming=True)

Load a sound or video resource.

The meaning of streaming is as for media.load. Compressed sources cannot be streamed (that is, video and compressed audio cannot be streamed from a ZIP archive).

  • name (str) – Filename of the media source to load.
  • streaming (bool) – True if the source should be streamed from disk, False if it should be entirely decoded into memory immediately.
Return type:


Previous topic

location Function

Next topic

reindex Function