Project

General

Profile

ODF » History » Version 6

Adrian Georgescu, 11/04/2014 12:58 PM

1 1 Adrian Georgescu
h1. ODF integration
2
3 5 Adrian Georgescu
This documents layout the changes required to support a new type of stream for collaborative editing.
4 1 Adrian Georgescu
5 6 Adrian Georgescu
h2. SDK changes
6 1 Adrian Georgescu
7 6 Adrian Georgescu
h3. Signaling
8
9 1 Adrian Georgescu
There is no need to alter anything related to signalling.
10
11 6 Adrian Georgescu
h3. Media
12 1 Adrian Georgescu
13 2 Adrian Georgescu
A new MSRP media type can be created similar to file-transfer or screen sharing. See SIP SIMPLE Client SDK MSRP streams definition:
14
15
<pre>
16 1 Adrian Georgescu
sipsimple/streams/msrp.py
17
</pre>
18
19 6 Adrian Georgescu
h4. Example of a new type of stream
20 3 Adrian Georgescu
21
<pre>
22
class ODFStream(MSRPStreamBase):
23
    type = 'odf'
24
25
    media_type = 'odf'
26
    accept_types = ['application/odf+xml']
27
    accept_wrapped_types = ['*']
28
</pre>
29 1 Adrian Georgescu
30 3 Adrian Georgescu
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.
31 1 Adrian Georgescu
32 6 Adrian Georgescu
h3. Presence
33 1 Adrian Georgescu
34
The end-points supporting this feature will advertise this capability by publishing it using SIP SIMPLE Presence. For this the end-point capabilities must be extended to support off.
35
36
<pre>
37
sipsimple/payloads/caps.py
38 4 Adrian Georgescu
</pre>
39 6 Adrian Georgescu
40
h2. GUI changes
41
42
The GUI must handle sessions for incoming and outgoing media stream defined above by creating its own controller.