Jason Tackaberry wrote:
> Author: tack
> Date: Thu Nov  2 21:15:17 2006
> New Revision: 1973
>
> Modified:
>    trunk/popcorn/src/backends/xine/player.py
>
> Log:
> Emit play signal when playing a stream from non-pause state.
>
>
> Modified: trunk/popcorn/src/backends/xine/player.py
> ==============================================================================
> --- trunk/popcorn/src/backends/xine/player.py (original)
> +++ trunk/popcorn/src/backends/xine/player.py Thu Nov  2 21:15:17 2006
> @@ -96,6 +96,7 @@
>          if status == 2:
>              if self.get_state() not in (STATE_PAUSED, STATE_PLAYING):
>                  self._state = STATE_PLAYING
> +                self.signals["play"].emit()
>              if speed == xine.SPEED_PAUSE and self.get_state() != 
> STATE_PAUSED:
>                  self._state = STATE_PAUSED
>                  self.signals["pause_toggle"].emit()

That should go into base.py. This class handles state changes. I see
now that this is missing on many parts. I guess we need more signals:

play_started vs. play_continued and stream_end vs. user_end. I don't
think pause_toggle is needed, it is just pause.

Back to the drawing board about signals and state changes....


Dischi

-- 
Remaining time multiplied by distress is constant.

Attachment: pgpAIbHcyh6va.pgp
Description: PGP signature

-------------------------------------------------------------------------
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

Reply via email to