Author: dmeyer
Date: Mon Nov  6 14:38:59 2006
New Revision: 1981

Modified:
   trunk/popcorn/src/backends/base.py

Log:
fix seek and add shared get_info and get_position

Modified: trunk/popcorn/src/backends/base.py
==============================================================================
--- trunk/popcorn/src/backends/base.py  (original)
+++ trunk/popcorn/src/backends/base.py  Mon Nov  6 14:38:59 2006
@@ -59,6 +59,10 @@
         self._instance_id = "popcorn-%d-%d" % (os.getpid(), 
self._instance_count)
         MediaPlayer._instance_count += 1
 
+        # some variables for the inherting class
+        self._position = 0.0
+        self._streaminfo = {}
+        
         # shared memory keys
         key = md5.md5(self._instance_id + "osd").hexdigest()[:7]
         self._osd_shmkey = int(key, 16)
@@ -222,23 +226,9 @@
         pass
 
 
-    def seek_relative(self, offset):
+    def seek(self, value, type):
         """
-        Seek relative.
-        """
-        pass
-
-
-    def seek_absolute(self, position):
-        """
-        Seek absolute.
-        """
-        pass
-
-
-    def seek_percentage(self, percent):
-        """
-        Seek percentage.
+        Seek. Possible types are SEEK_RELATIVE, SEEK_ABSOLUTE and 
SEEK_PERCENTAGE.
         """
         pass
 
@@ -247,7 +237,7 @@
         """
         Get current playing position.
         """
-        pass
+        return self._position
 
 
     def get_info(self):
@@ -255,7 +245,7 @@
         Returns info about the currently playing stream, or the file that
         has just been opened.
         """
-        pass
+        return self._streaminfo
 
 
     def nav_command(self, input):

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