Project

General

Profile

Actions

ODF » History » Revision 9

« Previous | Revision 9/21 (diff) | Next »
Adrian Georgescu, 11/04/2014 01:20 PM


ODF integration

This documents layout the changes required to support a new type of stream for collaborative editing.

SDK changes

Signaling

There is no need to alter anything related to signalling.

Media

Variant 1

This by far the simplest way. Establish a standard chat stream and add 'application/odf+xml' to the lists of supported payloads. Then add an attribute to the MSRP stream to signal the support for this feature:

class BlinkChatStream(ChatStream):
    def _create_local_media(self, uri_path):
        local_media = super(BlinkChatStream, self)._create_local_media(uri_path)
        local_media.attributes.append(SDPAttribute('features', 'history-control icon otf-editor'))
        return local_media

After session negotiation, the clients can invoke their corespondent GUI elements related to the collaborative editing.

This will work with any MSRP implementation, the data will piggy-back on top of an existent stream which makes development of a other end-points easy as no internal mechanism of session initiation must be done.

Variant 2

Create a new media type based on MSRP protocol similar to file-transfer or screen sharing. See SIP SIMPLE Client SDK MSRP streams definition:

sipsimple/streams/msrp.py

Example of a new type of stream

class ODFStream(MSRPStreamBase):
    type = 'odf'

    media_type = 'odf'
    accept_types = ['application/odf+xml']
    accept_wrapped_types = ['*']

Once established, the MSRP stream can cary back and forth payloads of the types specified in the stream definition. Is up to the end-points to handle the actual payloads and match various files shared through this mechanism over the same session. The SIP session id can be used to group together various flows within the same stream.

This mechanism will require similar changes in other clients that wish to implement this feature.

Presence

Optionally, the end-points supporting this feature can advertise this capability by publishing it using the SIP SIMPLE Presence payload. For this, the end-point capabilities must be extended to support off.

sipsimple/payloads/caps.py

GUI changes

The GUI must handle sessions for incoming and outgoing media stream defined above by creating its own controller that it is invoked either when negotiating the session, when a proper payload arrives over the chat channel or when user clicks in the GUI.

Updated by Adrian Georgescu about 10 years ago · 9 revisions