Part of elisa.core.components.player_engine View In Hierarchy
Known subclasses: elisa.core.tests.test_player_engine.FooEngine, elisa.core.tests.test_player_engine_registry.BarEngine, elisa.core.tests.test_player_engine_registry.FooEngine, elisa.core.tests.test_player_engine_registry.GooEngine, elisa.plugins.base.playbin_engine.PlaybinEngine
A PlayerEngine provides various media playback related functionalities.
It declares the uri schemes it supports and will be automatically
instantiated by the elisa.core.player_engine_registry.PlayerEngineRegistry
if needed.
elisa.core.player have to be
sent by the engine at appropriate times.
| Instance Variables | video_sink | the videosink of this player engine
(type: gst.BaseSink
) |
| audio_sink | the audiosink of this player engine
(type: gst.BaseSink
) | |
| visualisation | the visualisation element for the player engine
(type: gst.Element
) | |
| volume | a value between 0 and 10 (type: float ) | |
| position | the position we are currently playing in nanoseconds (type: float ) | |
| duration | (read-only) the total length of the loaded uri in nanoseconds (type: float ) | |
| speed | The speed of the current playback:
| |
| state | (read-only) The current state.
(type: elisa.core.player.STATES
) | |
| uri | (write-only) change the engine to be able to play the set uri.
(type: elisa.core.media_uri.Mediauri
) | |
| message_sender | who is the sender of messages (per default it is self) (type: instance ) | |
| Class Variables | uri_schemes | the uri-schemes this engine supports associated with their ranking value between 0 (highest rank) and 255 (lowest rank) (type: dict ) |
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 94 | Method | __init__ | Undocumented |
| 105 | Method | play | Play the media. If trigger_message is set to True, this triggers first |
| 138 | Method | pause | Pause the playback. If trigger_message is set to True, this triggers |
| 155 | Method | stop | Stop the playback. |
| 174 | Method | volume__set | Undocumented |
| 177 | Method | volume__get | Undocumented |
| 182 | Method | uri__set | Undocumented |
| 187 | Method | position__get | Undocumented |
| 197 | Method | position__set | Undocumented |
| 202 | Method | state__get | Undocumented |
| 205 | Method | duration__get | Undocumented |
| 214 | Method | speed__get | Undocumented |
| 217 | Method | speed_set | Undocumented |
| 223 | Method | video_sink__get | Undocumented |
| 226 | Method | video_sink__set | Undocumented |
| 231 | Method | audio_sink__get | Undocumented |
| 234 | Method | audio_sink__set | Undocumented |
| 239 | Method | visualisation__get | Undocumented |
| 242 | Method | visualisation__set | Undocumented |
Inherited from Component:
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 85 | Class | PathDescriptor | Undocumented |
| 97 | Class Method | create | Create and initialize the component. |
| 130 | Method | initialize | Initialize the component. |
| 142 | Method | clean | Clean the component. |
elisa.core.player.PlayerLoading
message and if the playback is really starting, it triggers elisa.core.player.PlayerPlaying.
Otherwise it does not trigger any messages.
| Parameters | trigger_message | should the player trigger messages here (type: bool ) |
elisa.core.player.PlayerPausing
message.
| Parameters | trigger_message | should the player trigger a message here (type: bool ) |
elisa.core.player.PlayerStopping
message.
| Parameters | trigger_message | should the player trigger a message here (type: bool ) |