Changes between Version 2 and Version 3 of 0.9/Media_Interface_Change


Ignore:
Timestamp:
Jun 10, 2008 3:24:14 PM (16 years ago)
Author:
bennylp
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • 0.9/Media_Interface_Change

    v2 v3  
    7070= New Design Specification = 
    7171 
    72 == Create Media Transport On-Demand == 
    73  
    74 Media transport (including SRTP) will be created before call. 
    75  
    7672== Distinguish Between Fresh Call and UPDATE/re-INVITE == 
    7773 
     
    107103 
    108104 
     105{{{ 
     106pjsua_media_channel_init() 
     107{ 
     108        pjmedia_transport_srtp_create(); 
     109} 
     110 
     111pjsua_media_channel_create_sdp(): 
     112{ 
     113        pjmedia_endpt_create_sdp(); 
     114        pjmedia_transport_media_create(); 
     115} 
     116 
     117pjsua_media_channel_update(): 
     118{ 
     119        pjmedia_transport_media_start(); 
     120        pjmedia_session_create(); 
     121} 
     122 
     123pjsua_media_channel_deinit(): 
     124{ 
     125        stop_media_session(); 
     126        pjmedia_transport_media_stop(); 
     127        pjmedia_transport_close(srtp); 
     128} 
     129}}} 
     130 
     131== Create Media Transport On-Demand == 
     132 
     133Media transport (including SRTP) will be created before call. 
     134