Author: duncan
Date: Thu Jan 3 16:27:20 2008
New Revision: 10258
Log:
[ 1861770 ] Add OSDWriteText support to video/plugins/xine.py
Patch from Michael Beal applied
Modified:
branches/rel-1-7/freevo/ChangeLog
branches/rel-1-7/freevo/src/video/plugins/xine.py
branches/rel-1/freevo/ChangeLog
branches/rel-1/freevo/src/video/plugins/xine.py
Modified: branches/rel-1-7/freevo/ChangeLog
==============================================================================
--- branches/rel-1-7/freevo/ChangeLog (original)
+++ branches/rel-1-7/freevo/ChangeLog Thu Jan 3 16:27:20 2008
@@ -22,6 +22,7 @@
* Updated recordserver to default watched/keep status (F#1857395)
* Updated shut down to allow single key confirmation (F#1857456)
* Updated web server fileinfo module to display watched/keep status
(F#1857392)
+ * Updated xine video plug-in to show OSD messages (F#1861770)
* Fixed apple trailers plug-in crashing (B#1861463)
* Fixed manual record tv plug-in to work in December (B#1858008)
* Fixed oneclick weather plug-in to allow non-ascii location names (B#1856597)
Modified: branches/rel-1-7/freevo/src/video/plugins/xine.py
==============================================================================
--- branches/rel-1-7/freevo/src/video/plugins/xine.py (original)
+++ branches/rel-1-7/freevo/src/video/plugins/xine.py Thu Jan 3 16:27:20 2008
@@ -105,6 +105,14 @@
config.XINE_ARGS_DEF.split(' ')
+ def ShowMessage(self, msg):
+ """
+ Show a message on the OSD
+ """
+ _debug_("XINE: Show OSD Message: '%s'" % msg)
+ self.app.write("OSDWriteText$ %s\n" % msg)
+
+
def rate(self, item):
"""
How good can this player play the file:
@@ -383,6 +391,10 @@
time.sleep(0.1)
return True
+ if event == OSD_MESSAGE:
+ self.ShowMessage(event.arg)
+ return True
+
# nothing found? Try the eventhandler of the object who called us
return self.item.eventhandler(event)
Modified: branches/rel-1/freevo/ChangeLog
==============================================================================
--- branches/rel-1/freevo/ChangeLog (original)
+++ branches/rel-1/freevo/ChangeLog Thu Jan 3 16:27:20 2008
@@ -25,6 +25,7 @@
* Updated recordserver to default watched/keep status (F#1857395)
* Updated shut down to allow single key confirmation (F#1857456)
* Updated web server fileinfo module to display watched/keep status
(F#1857392)
+ * Updated xine video plug-in to show OSD messages (F#1861770)
* Fixed apple trailers plug-in crashing (B#1861463)
* Fixed manual record tv plug-in to work in December (B#1858008)
* Fixed oneclick weather plug-in to allow non-ascii location names (B#1856597)
Modified: branches/rel-1/freevo/src/video/plugins/xine.py
==============================================================================
--- branches/rel-1/freevo/src/video/plugins/xine.py (original)
+++ branches/rel-1/freevo/src/video/plugins/xine.py Thu Jan 3 16:27:20 2008
@@ -105,6 +105,14 @@
config.XINE_ARGS_DEF.split(' ')
+ def ShowMessage(self, msg):
+ """
+ Show a message on the OSD
+ """
+ _debug_("XINE: Show OSD Message: '%s'" % msg)
+ self.app.write("OSDWriteText$ %s\n" % msg)
+
+
def rate(self, item):
"""
How good can this player play the file:
@@ -383,6 +391,10 @@
time.sleep(0.1)
return True
+ if event == OSD_MESSAGE:
+ self.ShowMessage(event.arg)
+ return True
+
# nothing found? Try the eventhandler of the object who called us
return self.item.eventhandler(event)
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog