Plex Media Objects

Media objects

class MediaObject (**kwargs)

  • protocols – depreciated
  • platforms – depreciated
  • bitrate
  • aspect_ratio
  • audio_channels
    2 = stereo, 6 = 5.1
  • audio_codec
  • video_codec
  • video_resolution
  • container
  • video_frame_rate
  • duration
  • width
  • height
  • protocol
  • optimized_for_streaming

Plex Framework: Constants

Contants

  • CACHE_1MINUTE = 60
  • CACHE_1HOUR = 3600
  • CACHE_1DAY = 86400
  • CACHE_1WEEK = 604800
  • CACHE_1MONTH = 2592000

 

ClientPlatforms

  • ClientPlatform.MacOSX
  • ClientPlatform.Linux
  • ClientPlatform.Windows
  • ClientPlatform.iOS
  • ClientPlatform.Android
  • ClientPlatform.LGTV
  • ClientPlatform.Roku

Protocols

  • Protocol.DASH
  • Protocol.HTTP
  • Protocol.HLS
  • Protocol.RTMP

Protocols (Old)

  • Protocol.Shoutcast
  • Protocol.WebKit
  • Protocol.HTTPStreamingVideo
  • Protocol.HTTPStreamingVideo720p
  • Protocol.HTTPMP4Video
  • Protocol.HTTPMP4Video720p
  • Protocol.HTTPVideo
  • Protocol.HTTPMP4Streaming

AudioCodecs

  • AudioCodec.AAC
  • AudioCodec.DCA
  • AudioCodec.MP3
  • AudioCodec.WMA
  • AudioCodec.WMAP
  • AudioCodec.VORBIS
  • AudioCodec.FLAC

VideoCodecs

  • VideoCodec.H263
  • VideoCodec.H264
  • VideoCodec.VP6
  • VideoCodec.WVC1
  • VideoCodec.DIVX
  • VideoCodec.DIV4
  • VideoCodec.XVID
  • VideoCodec.THEORA

Containers

  • Container.MKV
  • Container.MP4
  • Container.MPEGTS
  • Container.MOV
  • Container.AVI
  • Container.MP3
  • Container.OGG
  • Container.FLAC
  • Container.FLV