Package flumotion :: Package component :: Package consumers :: Package hlsstreamer :: Module hlsstreamer :: Class HLSStreamer
[hide private]

Class HLSStreamer

source code

                       object --+                        
                                |                        
          common.common.InitMixin --+                    
                                    |                    
          extern.log.log.Loggable --+                    
                                    |                    
              component.BaseComponent --+                
                                        |                
           feedcomponent010.FeedComponent --+            
                                            |            
           feedcomponent.ParseLaunchComponent --+        
                                                |        
                                   object --+   |        
                                            |   |        
               common.streamer.streamer.Stats --+        
                                                |        
                common.streamer.streamer.Streamer --+    
                                                    |    
                                   object --+       |    
                                            |       |    
               common.streamer.streamer.Stats --+   |    
                                                |   |    
         common.streamer.fragmentedstreamer.Stats --+    
                                                    |    
common.streamer.fragmentedstreamer.FragmentedStreamer --+
                                                        |
                                       object --+       |
                                                |       |
                   common.streamer.streamer.Stats --+   |
                                                    |   |
             common.streamer.fragmentedstreamer.Stats --+
                                                        |
                                                       HLSStreamer

Nested Classes [hide private]

Inherited from common.streamer.fragmentedstreamer.FragmentedStreamer: siteClass

Inherited from common.streamer.streamer.Streamer: componentMediumClass

Instance Methods [hide private]
 
init(self)
A subclass should do as little as possible in its init method.
source code
 
get_mime(self) source code
 
get_pipeline_string(self, properties)
Method that must be implemented by subclasses to produce the gstparse string for the component's pipeline.
source code
 
configure_auth_and_resource(self) source code
 
getRing(self) source code
 
configure_pipeline(self, pipeline, props)
Method that can be implemented by subclasses if they wish to interact with the pipeline after it has been created and set on the component.
source code
 
soft_restart(self)
Stops serving fragments, resets the playlist and starts waiting for new segments to become happy again
source code
 
_configure_sink(self)
Configure sink properties.
source code
 
_connect_sink_signals(self) source code
 
_process_fragment(self, fragment) source code
 
_new_fragment(self, hlssink) source code

Inherited from common.streamer.fragmentedstreamer.FragmentedStreamer: __repr__, do_pipeline_playing, isReady, remove_client, update_bytes_received

Inherited from common.streamer.streamer.Streamer: __provides__, check_properties, do_setup, do_stop, getDescription, getLoadData, getMaxClients, getStreamData, getUrl, get_content_type, hasCaps, parseProperties, remove_all_clients, updatePorterDetails, update_ui_state

Inherited from feedcomponent.ParseLaunchComponent: add_default_eater_feeder, create_pipeline, get_eater_srcpad, get_eater_template, get_feeder_sinkpad, get_feeder_template, get_queue_string, parse_pipeline, parse_tmpl, set_pipeline

Inherited from feedcomponent010.FeedComponent: addEffect, attachPadMonitorToElement, attachPadMonitorToFeeder, bus_message_received_cb, cleanup, connect_feeders, dump_gstreamer_debug_dot_file, eatFromFD, feedToFD, get_element, get_element_property, get_master_clock, get_pipeline, install_eater_continuity_watch, install_eater_event_probes, make_message_for_gstreamer_error, modify_element_property, provide_master_clock, reconnectEater, set_element_property, set_master_clock, setup_completed, stop_pipeline, try_start_pipeline, unblock_eater

Inherited from component.BaseComponent: __init__, addMessage, adminCallRemote, checkPropertyType, do_check, fixRenamedProperties, getMood, getName, getWorkerName, modifyProperty, observerAppend, observerRemove, removeMessage, setMedium, setMood, setShutdownHook, setWorkerName, setup, stop, waitForHappy, warnDeprecatedProperties

Inherited from common.streamer.fragmentedstreamer.Stats: getBytesReceived, getBytesSent

Inherited from common.streamer.streamer.Stats: __providedBy__, clientAdded, clientRemoved, getAverageClients, getClients, getCurrentBitrate, getLoadDeltas, getPeakClients, getPeakEpoch, getUptime, updateState

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Inherited from extern.log.log.Loggable: debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure, writeMarker

Class Variables [hide private]
  DEFAULT_SESSION_TIMEOUT = 30
  DEFAULT_FRAGMENT_PREFIX = 'fragment'
  DEFAULT_MAIN_PLAYLIST = 'main.m3u8'
  DEFAULT_STREAM_PLAYLIST = 'stream.m3u8'
  DEFAULT_STREAM_BITRATE = 300000
  DEFAULT_KEYFRAMES_PER_SEGMENT = 10
  logCategory = 'hls-streamer'
Implementors can provide a category to log their messages under.

Inherited from common.streamer.fragmentedstreamer.FragmentedStreamer: DEFAULT_MAX_WINDOW, DEFAULT_MIN_WINDOW, DEFAULT_SECRET_KEY, multi_files

Inherited from common.streamer.streamer.Streamer: __implemented__, checkOffset, pipe_template

Inherited from feedcomponent.ParseLaunchComponent: DELIMITER, DEPAY_TMPL, EATER_TMPL, FDSRC_TMPL, FEEDER_TMPL, checkTimestamp

Inherited from feedcomponent010.FeedComponent: FEEDER_STATS_UPDATE_FREQUENCY, dropStreamHeaders, eaters, feeders, swallowNewSegment

Instance Variables [hide private]

Inherited from component.BaseComponent: medium, name, uiState

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

init(self)

source code 

A subclass should do as little as possible in its init method. In particular, it should not try to access resources.

Failures during init are marshalled back to the manager through the worker's remote_create method, since there is no component state proxied to the manager yet at the time of init.

Overrides: component.BaseComponent.init
(inherited documentation)

get_mime(self)

source code 
Overrides: common.streamer.streamer.Streamer.get_mime

get_pipeline_string(self, properties)

source code 

Method that must be implemented by subclasses to produce the gstparse string for the component's pipeline. Subclasses should not chain up; this method raises a NotImplemented error.

Returns: a new pipeline string representation.

Overrides: feedcomponent.ParseLaunchComponent.get_pipeline_string
(inherited documentation)

configure_auth_and_resource(self)

source code 
Overrides: common.streamer.streamer.Streamer.configure_auth_and_resource

configure_pipeline(self, pipeline, props)

source code 

Method that can be implemented by subclasses if they wish to interact with the pipeline after it has been created and set on the component.

This could include attaching signals and bus handlers.

Overrides: feedcomponent.ParseLaunchComponent.configure_pipeline
(inherited documentation)

_configure_sink(self)

source code 

Configure sink properties. Can be used by subclasses to set configuration parameters in the element

Overrides: common.streamer.fragmentedstreamer.FragmentedStreamer._configure_sink
(inherited documentation)

_connect_sink_signals(self)

source code 
Overrides: common.streamer.fragmentedstreamer.FragmentedStreamer._connect_sink_signals