3 from __future__ import with_statement
4 from __future__ import division
10 _moduleLogger = logging.getLogger(__name__)
13 class Stream(gobject.GObject):
21 gobject.SIGNAL_RUN_LAST,
23 (gobject.TYPE_STRING, ),
26 gobject.SIGNAL_RUN_LAST,
28 (gobject.TYPE_STRING, ),
31 gobject.SIGNAL_RUN_LAST,
33 (gobject.TYPE_PYOBJECT, gobject.TYPE_PYOBJECT),
38 gobject.GObject.__init__(self)
50 return self.STATE_STOP
52 def set_file(self, uri):
53 self.emit("error", "Audio not supported on this platform", "")
56 self.emit("error", "Audio not supported on this platform", "")
59 self.emit("error", "Audio not supported on this platform", "")
62 self.emit("error", "Audio not supported on this platform", "")
72 def seek_time(self, ns):
73 self.emit("error", "Audio not supported on this platform", "")
76 if __name__ == "__main__":