Changes between Version 2 and Version 3 of Media_Transport_Adapter


Ignore:
Timestamp:
Sep 24, 2011 4:56:31 AM (13 years ago)
Author:
bennylp
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Media_Transport_Adapter

    v2 v3  
    2222'''Media transport adapter''' is a variant of media transport, where instead of transmitting and receiving packets directly to/from the network, it uses another media transport to do that. The adapter is installed between the media stream object and another transport adapter, and have full access to the RTP/RTCP packets that are exchanged between the two. The adapter may even inject it's own packets to either direction if it wants to, or drop them. Because of this arrangement, the obvious use of the adapter is to add processing to the media packets without having to be burdened with the actual management of the network. Once the adapter is implemented, it will immediately be able to take advantage of existing and future media transports in PJMEDIA, such as UDP and ICE media transports, including other transport adapters! 
    2323 
    24 . 
     24The SRTP support is implemented as a media transport adapter. Apart from the actual encoding and decoding of packets, it also reads and writes the SDP session descriptor, and the mechanism provided by the media transport API is capable to support this. 
    2525 
    2626 
     27[[BR]] 
     28 
     29= Implementing Your Own Adapter = 
     30 
     31The following steps provide rough guidance to implementing your own adapter: 
     32 - start with the transport adapter sample from pjmedia directory. 
     33 - copy this to your application directory (you don't need to work in pjmedia directory) 
     34 - implement the media transport operations as necessary. See the media transport reference documentation for more information. 
     35 - integrate your adapter to your PJSUA-LIB based application (see the next section) 
     36 
     37= Integrating Your Adapter = 
     38 
     39The following step(s) show how to integrate your adapter so that it can be recognized by PJSUA-LIB and used for your application: 
     40 - implement {{{on_create_media_transport()}}} callback. This callback notifies application when media transport needs to be created.  
     41 
     42Please note the following: 
     43 - the callback is only available in version 1.12 or later. 
     44 -  
    2745 
    2846