Author: dmeyer
Date: Thu Nov 2 19:29:51 2006
New Revision: 1972
Modified:
trunk/popcorn/src/backends/base.py
Log:
add some doc
Modified: trunk/popcorn/src/backends/base.py
==============================================================================
--- trunk/popcorn/src/backends/base.py (original)
+++ trunk/popcorn/src/backends/base.py Thu Nov 2 19:29:51 2006
@@ -179,6 +179,24 @@
# Methods to be implemented by subclasses.
#
+ # Please set self._state when something changes, signals will be send
+ # by this base class when you change the state. The following states
+ # are valid:
+
+ # STATE_NOT_RUNNING: the player is not running and has released audio
+ # and video device. It doesn't matter if a child process is still
+ # running or not.
+ # STATE_IDLE: the player is not running but may still have video and
+ # audio devices locked for a next file.
+ # STATE_OPENING: the player is about to open the file and will start
+ # playing in a few seconds. If the player goes from STATE_OPENING
+ # to STATE_IDLE or STATE_NOT_RUNNING again without being in
+ # STATE_PLAYING, the 'failed' signal will be emited.
+ # STATE_PLAYING: player is playing
+ # STATE_PAUSED: player is in playback mode but pausing
+ # STATE_SHUTDOWN: player is going releasing the video and audio devices,
+ # next state has to be STATE_NOT_RUNNING
+
def open(self, mrl):
"""
Open mrl.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog