Changes between Version 4 and Version 5 of media-flow


Ignore:
Timestamp:
Dec 5, 2006 2:04:46 PM (17 years ago)
Author:
bennylp
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • media-flow

    v4 v5  
    77== Media Interconnection == 
    88 
     9The main building blocks for above diagram are the following components: 
     10 
     11 * a [http://www.pjsip.org/pjmedia/docs/html/group__PJMED__SND__PORT.htm Sound Device Port] which is a thin wrapper for the [http://www.pjsip.org/pjmedia/docs/html/group__PJMED__SND.htm Sound Device Abstraction] to translate sound device's {{{rec_cb()}}}/{{{play_cb()}}} callbacks into call to media port's {{{pjmedia_port_put_frame()}}}/{{{pjmedia_port_get_frame()}}}. 
     12 * a [http://www.pjsip.org/pjmedia/docs/html/group__PJMEDIA__CONF.htm Conference Bridge], 
     13 * a [http://www.pjsip.org/pjmedia/docs/html/group__PJMED__STRM.htm Media Stream] that is created for the call, 
     14 * a [http://www.pjsip.org/pjmedia/docs/html/group__PJMEDIA__TRANSPORT__H.htm Media Transport] that is attached to the Media Stream to receive/transmit RTP/RTCP packets. 
     15 
    916 
    1017== Setting up Media Interconnectoin == 
     18 
     19The media interconnection above would be set up as follows: 
     20 
     21 * during application initialization, application creates the Sound Device Port and the Conference Bridge. These two objects would normally remain throughout the life time of the application. 
     22 * when making outgoing call or receiving incoming call, application would create a media transport instance (normally it's an [http://www.pjsip.org/pjmedia/docs/html/group__PJMEDIA__TRANSPORT__UDP.htm UDP Media Transport]). From this media transport, application can put its listening address and port number in the local SDP to be given to the INVITE session. 
     23 * when the media in the call is established, application creates a [http://www.pjsip.org/pjmedia/docs/html/group__PJMED__SES.htm Media Session Info] from both local and remote SDP found in the INVITE session. 
     24 * from the Media Session Info above, application creates a [http://www.pjsip.org/pjmedia/docs/html/group__PJMED__SES.htm Media Session], specifying the Media Session Info and the Media Transport created earlier. 
     25 * application retrieve the Media (Audio) Stream from the Media Session, and register this Media Stream to the conference bridge. 
     26 * application connects the Media Stream slot in the bridge to other slots such as slot zero which normally is connected to the sound device. 
     27 
     28 
    1129 
    1230