[Telepathy] spec change to NewMediaStreamHandler

Dafydd Harries dafydd.harries at collabora.co.uk
Mon Aug 7 11:23:42 PDT 2006


I've just committed a minor change to the spec so that the unique ID of a new
stream is included in the NewMediaStreamHandler signal. Previously the unique
ID of a stream was only available using a call to GetStreams.

Diff of the change follows.

--- old-telepathy-spec/telepathy/server/channel.py>.....2006-08-07 19:17:18.131676329 +0100
+++ new-telepathy-spec/telepathy/server/channel.py>.....2006-08-07 19:17:18.143677420 +0100
@@ -366,14 +366,15 @@
         """
         pass
-
-    @dbus.service.signal(MEDIA_SESSION_HANDLER, signature='ouu')
-    def NewMediaStreamHandler(self, stream_handler, media_type, direction):
+    @dbus.service.signal(MEDIA_SESSION_HANDLER, signature='ouuu')
+    def NewMediaStreamHandler(self, stream_handler, id, media_type, direction):         """
         Emitted when a new media stream handler has been created for this
         session.
-
         Parameters:
         stream_handler - an object path to a new MediaStreamHandler
+        id - the unique ID of the new stream
         media_type - enum for type of media that this stream should handle
           MEDIA_STREAM_TYPE_AUDIO = 0
           MEDIA_STREAM_TYPE_VIDEO = 1


-- 
Dafydd


More information about the Telepathy mailing list