Returns a (position, duration) tuple
(self)
| 61 | return self.player.get_property('uri') |
| 62 | |
| 63 | def query_position(self): |
| 64 | "Returns a (position, duration) tuple" |
| 65 | try: |
| 66 | position, format = self.player.query_position(gst.FORMAT_TIME) |
| 67 | except: |
| 68 | position = gst.CLOCK_TIME_NONE |
| 69 | |
| 70 | try: |
| 71 | duration, format = self.player.query_duration(gst.FORMAT_TIME) |
| 72 | except: |
| 73 | duration = gst.CLOCK_TIME_NONE |
| 74 | |
| 75 | return (position, duration) |
| 76 | |
| 77 | def seek(self, location): |
| 78 | """ |
no outgoing calls
no test coverage detected