Package elisa :: Package plugins :: Package base :: Package views :: Module player_view :: Class PlayerView
[hide private]
[frames] | no frames]

Class PlayerView

source code


This class implements a view which can create a Player instance and manage it. This class can be inherited to provide the toolkit dependent display, as well as the GStreamer video and audio sinks

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
 
initialize(self)
Initialize various variables internal to the Component.
source code
 
_is_playing(self, message, sender) source code
 
_error(self, message, sender) source code
 
_stopped(self, message, sender) source code
 
attribute_set(self, origin, key, old_value, new_value)
Called when an attribute of the controller to which it is connected changes.
source code
 
media_type_changed(self, media_type) source code
 
state_changed(self, state) source code
 
_update_model_position(self) source code
 
uri_changed(self, uri) source code
 
pause_requested_changed(self, value) source code
 
volume_changed(self, value) source code
 
seek_to_changed(self, position) source code
 
controller_changed(self, old_controller, new_controller)
Called when controller is set to a new value.
source code
 
_update_subtitle(self, uri)
We only support text
source code

Inherited from base_components.view.View: clean, controller__get, controller__set, frontend__get, frontend__set, frontend_changed, parent__get, parent__set, update

Inherited from core.component.Component: 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]
tuple of strings supported_controllers = ('base:player_controller')
list of controllers that are compatible with the view identified by their path: 'plugin:controller'
string name = 'player_view'
Component's name

Inherited from base_components.view.View: bindings, context_path

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.view.View: context_handle, controller, frontend, parent

Inherited from core.component.Component: config, path

Properties [hide private]

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.view.View.__init__

initialize(self)

source code 

Initialize various variables internal to the Component.

This method is called by the plugin_registry after the component's config has been loaded.

Override this method if you need to perform some initializations that would normally go in Component's constructor but can't be done there because they require access to the component's config.
Overrides: base_components.view.View.initialize

attribute_set(self, origin, key, old_value, new_value)

source code 
Called when an attribute of the controller to which it is connected changes.
Overrides: base_components.view.View.attribute_set
(inherited documentation)

controller_changed(self, old_controller, new_controller)

source code 

Called when controller is set to a new value.

Override if you wish to react to that change. Do not forget to call the parent class method.
Overrides: base_components.view.View.controller_changed
(inherited documentation)