Package flumotion :: Package component :: Package plugs :: Package hlsmultibitrate :: Module multibitrate
[hide private]

Module multibitrate

source code


Version: $Rev$

Classes [hide private]
  PlaylistResource
I am a resource for m3u8 playlists, rendering multibitrate playlists based on the user-agent, so that IPad clients gets a variant playlist in which the first element correspond to the higher bitrate, whilst IPhone ones receive a playlist where the first element has a lower bitrate.
  MultibiratePlaylistPlug
I am a component plug for a http-server which plugs in a http resource containing a HLS variant playlist.
Functions [hide private]
 
test() source code
Variables [hide private]
  HEADER = '#EXTM3U'
  ENTRY_TEMPLATE = '\n#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=%...
  CONTENT_TYPE = 'application/vnd.apple.mpegurl'
  IPAD_TARGET = 600000
  IPHONE_TARGET = 200000
  AUDIO_TARGET = 96000
  __package__ = 'flumotion.component.plugs.hlsmultibitrate'
Variables Details [hide private]

ENTRY_TEMPLATE

Value:
'''
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=%(bitrate)d
%(stream-url)s'''