| Server IP : 182.53.201.61 / Your IP : 216.73.217.175 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/lib/python2.6/site-packages/papyon/media/ |
Upload File : |
Ńň
Jc @ s3 d d k l Z d g Z d e f d YZ d S( i˙˙˙˙( t MediaSessiont MediaCallc B sn e Z d Z d Z e d Z d Z d Z d Z d Z d Z
d Z d Z d
Z
RS( s This class represents the signaling part in a call between two or more
peers. Subclasses need to implement the underneath protocol to handle
invitations and transaction during calls (start/pause/end).
The media related stuff (NAT traversal, codecs, etc.) would be handled
by the MediaSession. The MediaCall might however need to implement the
on_media_prepared and on_media_ready functions. For example, once the
media session is prepared, we might send a message with the media
details.c C s` t | | _ g | _ | i i | i i d | i | i i | i i d | i d S( sŚ Initialize the media call.
@param session_type: Type of session (SIP, webcam...)
@type session_type: L{papyon.media.constants.MediaSessionType}t preparedt readyN( R t _media_sessiont _signalst appendt connectt on_media_session_preparedt on_media_session_ready( t selft session_type( ( s5 /usr/lib/python2.6/site-packages/papyon/media/call.pyt __init__$ s
c C s | i S( N( R ( R
( ( s5 /usr/lib/python2.6/site-packages/papyon/media/call.pyt
media_session2 s c C s d S( se Invite the peer for a call.
@note The other participants need to have been previously set.N( ( R
( ( s5 /usr/lib/python2.6/site-packages/papyon/media/call.pyt invite6 s c C s d S( s Accept the call invitation.N( ( R
( ( s5 /usr/lib/python2.6/site-packages/papyon/media/call.pyt accept; s c C s d S( s Reject the call invitation.N( ( R
( ( s5 /usr/lib/python2.6/site-packages/papyon/media/call.pyt reject? s c C s d S( s= Signal to the peer that we are waiting for the user approval.N( ( R
( ( s5 /usr/lib/python2.6/site-packages/papyon/media/call.pyt ringC s c C s d S( s
End the call.N( ( R
( ( s5 /usr/lib/python2.6/site-packages/papyon/media/call.pyt endG s c C s5 x! | i D] } | i i | q
W| i i d S( s- Close the media session and dispose the call.N( R R t
disconnectt close( R
t
handler_id( ( s5 /usr/lib/python2.6/site-packages/papyon/media/call.pyt disposeK s
c C s d S( N( ( R
( ( s5 /usr/lib/python2.6/site-packages/papyon/media/call.pyR Q s c C s d S( N( ( R
( ( s5 /usr/lib/python2.6/site-packages/papyon/media/call.pyR T s ( t __name__t
__module__t __doc__R t propertyR
R R R R R R R R ( ( ( s5 /usr/lib/python2.6/site-packages/papyon/media/call.pyR s N( t papyon.media.sessionR t __all__t objectR ( ( ( s5 /usr/lib/python2.6/site-packages/papyon/media/call.pyt <module> s