Changes between Version 4 and Version 5 of 0.9/Media_Interface_Change
- Timestamp:
- Jun 17, 2008 2:29:22 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
0.9/Media_Interface_Change
v4 v5 11 11 '''pjsua_call_on_create_offer()''' : :: 12 12 pjsua_media_channel_init();[[BR]] 13 pjsua_media_channel_create_sdp( );13 pjsua_media_channel_create_sdp(&local_sdp, rem_sdp); 14 14 15 15 '''pjsua_call_on_media_update()''' : :: … … 44 44 = New = 45 45 46 (Changes in italics) 46 ''New code in italics''. 47 47 48 48 == pjsua_call.c == … … 51 51 '''pjsua_call_make_call()''' : :: 52 52 '''pjsua_call_on_incoming()''' : :: 53 pjsua_media_channel_init();[[BR]] 54 pjsua_media_channel_create_sdp(); 53 ~~pjsua_media_channel_init();~~[[BR]] 54 ~~pjsua_media_channel_create_sdp(&local_sdp, rem_sdp);~~[[BR]] 55 ''pjsua_media_channel_init(&local_sdp, rem_sdp);'' 55 56 56 ''57 57 '''pjsua_call_update()''' : :: 58 58 '''pjsua_call_reinvite()''' : :: 59 59 '''pjsua_call_on_rx_offer()''' : :: 60 60 '''pjsua_call_on_create_offer()''' : :: 61 pjsua_media_channel_create_sdp();62 ''61 ~~pjsua_media_channel_init(&local_sdp, rem_sdp);~~[[BR]] 62 pjsua_media_channel_create_sdp(&local_sdp, rem_sdp); 63 63 64 64 '''pjsua_call_on_media_update()''' : :: … … 73 73 and this is the implementation of media channel functions above: 74 74 75 '''pjsua_media_channel_init( )''' : ::75 '''pjsua_media_channel_init(&local_sdp, rem_sdp)''' : :: 76 76 pjmedia_transport_srtp_create();[[BR]] 77 ''pjmedia_transport_media_create();'' 77 ~~pjmedia_transport_media_create(local_sdp, rem_sdp);~~[[BR]] 78 ''pjmedia_transport_media_create(rem_sdp);''[[BR]] 79 ''pjmedia_transport_encode_sdp(local_sdp, rem_sdp);'' 78 80 79 '''pjsua_media_channel_create_sdp( )''' : ::81 '''pjsua_media_channel_create_sdp(&local_sdp, rem_sdp)''' : :: 80 82 pjmedia_endpt_create_sdp();[[BR]] 81 ''pjmedia_transport_encode_sdp();'' 83 ~~pjmedia_transport_media_create(local_sdp, rem_sdp);~~[[BR]] 84 ''pjmedia_transport_encode_sdp(local_sdp, rem_sdp);'' 82 85 83 86 '''pjsua_media_channel_update()''' : ::