| 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 : |
Ñò
O Jc @ sj d d k l Z d d k Td d k Z d d k Z e i d ƒ Z d g Z d e i e f d „ ƒ YZ d S( iÿÿÿÿ( t EventsDispatcher( t *Ns papyon.media.sessiont MediaSessionc B sâ e Z d Z h e i e i d f d 6e i e i d f d 6Z d „ Z e d „ ƒ Z e d „ ƒ Z
e d „ ƒ Z e d „ ƒ Z e d „ ƒ Z
d „ Z e d
„ Z d „ Z d „ Z d
„ Z e d „ Z d „ Z d „ Z RS( sl A media session represents a conference which may include multiple
streams (audio, video). A session handler might have to be implemented
on the client side to react to the adding/removing of streams (e.g. UI
notification). See L{papyon.media.conference.MediaSessionHandler} for a
default implementation using Farsight 2.0.
The 'prepared' and 'ready' signals are meant to be handled by the media
call. For example, we might need to send a session message to the other
participants once the session is prepared (i.e. we discovered all local
candidates and codecs).t preparedt readyc C sE t i i | ƒ t i | ƒ | | _ g | _ t | _ h | _ d S( s! Initialize the session
@param type: Session type
@type type: L{papyon.media.constants.MediaSessionType}
@param msg_class: The session message class to use (e.g SDPMessage)
@type msg_class: subclass of L{papyon.media.message.MediaSessionMessage}N( t gobjectt GObjectt __init__R t _typet _streamst Falset _processing_messaget _signals( t selft type( ( s8 /usr/lib/python2.6/site-packages/papyon/media/session.pyR 4 s
c C s | i d ƒ d j S( sJ Whether this session contain a video stream or not
@rtype: boolt videoN( t
get_streamt None( R
( ( s8 /usr/lib/python2.6/site-packages/papyon/media/session.pyt has_videoD s c C s | i S( sM List of streams
@rtype: list of L{papyon.media.stream.MediaStream}( R ( R
( ( s8 /usr/lib/python2.6/site-packages/papyon/media/session.pyt streamsJ s c C s6 | i o t Sx | i D] } | i p t Sq Wt S( s0 Are all streams prepared
@rtype: bool( R R
R R t True( R
t stream( ( s8 /usr/lib/python2.6/site-packages/papyon/media/session.pyR P s
c C s6 | i o t Sx | i D] } | i p t Sq Wt S( s- Are all streams ready
@rtype: bool( R R
R R R ( R
R ( ( s8 /usr/lib/python2.6/site-packages/papyon/media/session.pyR [ s
c C s | i S( sI Session type
@rtype L{papyon.media.constants.MediaSessionType}( R ( R
( ( s8 /usr/lib/python2.6/site-packages/papyon/media/session.pyR f s c C s&