Package elisa :: Package plugins :: Package base :: Module playbin_engine :: Class PlaybinEngine
[hide private]
[frames] | no frames]

Class PlaybinEngine

source code


This class implements a player using playbin to access the uris

Nested Classes [hide private]

Inherited from core.component.Component: __metaclass__

Instance Methods [hide private]
 
__init__(self)
Lazily set name from class name styled with underscores (class ComponentBar -> name component_bar.
source code
 
_uri_schemes__get(self) source code
 
audio_sink__get(self) source code
 
audio_sink__set(self, sink) source code
 
visualisation__set(self, new_visualisation) source code
 
visualisation__get(self) source code
 
video_sink__get(self) source code
 
video_sink__set(self, sink)
Set the videosink to sink.
source code
 
uri__set(self, uri) source code
 
volume__set(self, volume) source code
 
volume__get(self) source code
 
_create_pipeline(self) source code
 
_bus_message_cb(self, bus, message) source code
 
_on_eos(self) source code

Inherited from base_components.player_engine.PlayerEngine: duration__get, pause, play, position__get, position__set, speed__get, speed_set, state__get, stop

Inherited from core.component.Component: clean, initialize, load_config, save_config

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

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Static Methods [hide private]

Inherited from core.component.Component: __classinit__

Class Variables [hide private]
dict uri_schemes = {'cdda': 150, 'daap': 150, 'file': 150, 'ftp': 1...
the uri-schemes this engine supports associated with their ranking value between 0 (highest rank) and 255 (lowest rank)
string name = 'playbin_engine'
Component's name

Inherited from core.component.Component: checked, config_doc, default_config, id, plugin

Inherited from extern.log.log.Loggable: logCategory

Instance Variables [hide private]

Inherited from base_components.player_engine.PlayerEngine: duration, message_sender, position, speed, state

Inherited from core.component.Component: config, path

Properties [hide private]
  _uri_schemes
gst.BaseSink audio_sink
the audiosink of this player engine
elisa.core.media_uri.Mediauri uri
(write-only) change the engine to be able to play the set uri.
gst.BaseSink video_sink
the videosink of this player engine
gst.Element visualisation
the visualisation element for the player engine
float volume
a value between 0 and 10

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 
Lazily set name from class name styled with underscores (class ComponentBar -> name component_bar. Also set log category based on component name, with a 'comp_' prefix.
Overrides: base_components.player_engine.PlayerEngine.__init__

audio_sink__get(self)

source code 
Overrides: base_components.player_engine.PlayerEngine.audio_sink__get

audio_sink__set(self, sink)

source code 
Overrides: base_components.player_engine.PlayerEngine.audio_sink__set

visualisation__set(self, new_visualisation)

source code 
Overrides: base_components.player_engine.PlayerEngine.visualisation__set

visualisation__get(self)

source code 
Overrides: base_components.player_engine.PlayerEngine.visualisation__get

video_sink__get(self)

source code 
Overrides: base_components.player_engine.PlayerEngine.video_sink__get

video_sink__set(self, sink)

source code 
Set the videosink to sink. If the sink none and there was a video-sink before, destroy the pipeline as well and make a new one!
Overrides: base_components.player_engine.PlayerEngine.video_sink__set

uri__set(self, uri)

source code 
Overrides: base_components.player_engine.PlayerEngine.uri__set

volume__set(self, volume)

source code 
Overrides: base_components.player_engine.PlayerEngine.volume__set

volume__get(self)

source code 
Overrides: base_components.player_engine.PlayerEngine.volume__get

Class Variable Details [hide private]

uri_schemes

the uri-schemes this engine supports associated with their ranking value between 0 (highest rank) and 255 (lowest rank)
Type:
dict
Value:
{'cdda': 150,
 'daap': 150,
 'file': 150,
 'ftp': 150,
 'http': 150,
 'mms': 150,
 'sftp': 150,
 'smb': 150}

Property Details [hide private]

_uri_schemes

Get Method:
elisa.plugins.base.playbin_engine.PlaybinEngine._uri_schemes__get(self)
Set Method:
'frontend'
Delete Method:
'frontend'

audio_sink

the audiosink of this player engine
Get Method:
elisa.plugins.base.playbin_engine.PlaybinEngine.audio_sink__get(self)
Set Method:
elisa.plugins.base.playbin_engine.PlaybinEngine.audio_sink__set(self, sink)
Delete Method:
'frontend'

uri

(write-only) change the engine to be able to play the set uri.
Get Method:
'frontend'
Set Method:
elisa.plugins.base.playbin_engine.PlaybinEngine.uri__set(self, uri)
Delete Method:
'frontend'

video_sink

the videosink of this player engine
Get Method:
elisa.plugins.base.playbin_engine.PlaybinEngine.video_sink__get(self)
Set Method:
elisa.plugins.base.playbin_engine.PlaybinEngine.video_sink__set(self, sink) - Set the videosink to sink.
Delete Method:
'frontend'

visualisation

the visualisation element for the player engine
Get Method:
elisa.plugins.base.playbin_engine.PlaybinEngine.visualisation__get(self)
Set Method:
elisa.plugins.base.playbin_engine.PlaybinEngine.visualisation__set(self, new_visualisation)
Delete Method:
'frontend'

volume

a value between 0 and 10
Get Method:
elisa.plugins.base.playbin_engine.PlaybinEngine.volume__get(self)
Set Method:
elisa.plugins.base.playbin_engine.PlaybinEngine.volume__set(self, volume)
Delete Method:
'frontend'