Package elisa :: Package plugins :: Package base :: Package models :: Module player_model :: Class PlayerModel
[hide private]
[frames] | no frames]

Class PlayerModel

source code


DOCME

Nested Classes [hide private]

Inherited from core.component.Component: __metaclass__

Instance Methods [hide private]

Inherited from base_components.model.Model: __init__

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

Inherited from core.observers.observable.Observable: __setattr__, add_observer, remove_observer

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__, __str__

Static Methods [hide private]

Inherited from core.component.Component: __classinit__

Class Variables [hide private]
string name = 'player_model'
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]
elisa.core.media_uri.MediaUri uri = 'frontend'
URI of the media currently played
elisa.core.player.STATES state = 'frontend'
current state of the player
elisa.plugins.base.models.list_model.ListModel playlist = 'frontend'
list of media that are to be played
boolean preview_mode = True
whether or not the player is previewing the media
float volume = 1.0
volume level; between 0 and 10
boolean muted = True
whether or not the player is muted
int position = -1
current position in the media (in nanoseconds); READ ONLY; -1 if unknown
int duration = -1
duration of the current media (in nanoseconds); READ ONLY; -1 if unknown
int seek_to = 0
position where to seek in the file (in nanoseconds)
boolean pause_requested = True
DOCME
string media_type = 'frontend'
type of the media current played amongst; can be 'audio' or 'video'

Inherited from base_components.model.Model: activate_action, activity, loading, parent

Inherited from core.component.Component: config, path

Properties [hide private]

Inherited from object: __class__