Class e.c.p.PlayerRegistry(log.Loggable):

Part of elisa.core.player_registry View In Hierarchy

The PlayerRegistry has responsability to create and hold elisa.core.player.Player instances. Additionally it can perform global actions on all the players at the same time.

Player instances are identified by their name, which must be unique, this is the responsability of the developer.
Line # Kind Name Docs
49 Method __init__ Undocumented
56 Method initialize Undocumented
64 Method deinitialize Undocumented
69 Method create_player Returns a new player instance.
83 Method remove_player Remove player_instance Player
100 Method play_sound Play the sound located at uri. If the simple audio player is already
112 Method play_all Set all players into playing mode.
118 Method pause_all Pause all players.
124 Method stop_all Stop all currently instantiated players.
130 Method mute_all Mute all players.
136 Method unmute_all Unmute all players.
def __init__(self):
Undocumented
def initialize(self):
Undocumented
def deinitialize(self):
Undocumented
def create_player(self):
Returns a new player instance.
Returns (type: elisa.core.player.Player )
def remove_player(self, player_instance):
Remove player_instance Player
Parametersplayer_instancePlayer instance to remove (type: Player )
def play_sound(self, uri):
Play the sound located at uri. If the simple audio player is already playing, the playback is stopped. The playback of the other players is not touched in any way.
Parametersurithe uri of the sound to play (type: elisa.core.media_uri.MediaUri )
def play_all(self):
Set all players into playing mode.
def pause_all(self):
Pause all players.
def stop_all(self):
Stop all currently instantiated players.
def mute_all(self):
Mute all players.
def unmute_all(self):
Unmute all players.
API Documentation for Elisa Media Center, generated by pydoctor at 2008-09-09 19:37:04.