Ignore:
Timestamp:
Mar 22, 2012 9:56:52 AM (7 years ago)
Author:
bennylp
Message:

Re: #1463 (Third party media support). Tnitial work and it works, tested on Linux. Details:

  • add PJSUA_MEDIA_HAS_PJMEDIA macro
  • move pjmedia specific implementation in pjsua_media.c and pjsua_call.c into pjsua_aud.c
  • add pjsip-apps/src/third_party_media sample containing:
    • alt_pjsua_aud.c
    • alt_pjsua_vid.c
  • moved pjmedia_vid_stream_info_from_sdp() into pjmedia/vid_stream_info.c
  • moved pjmedia_stream_info_from_sdp() into pjmedia/stream_info.c
  • misc: fixed mips_test.c if codecs are disabled
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsua-lib/pjsua_internal.h

    r3938 r3982  
    602602                                  pj_bool_t async, 
    603603                                  pjsua_med_tp_state_cb cb); 
    604 pj_status_t video_channel_update(pjsua_call_media *call_med, 
    605                                  pj_pool_t *tmp_pool, 
    606                                  const pjmedia_sdp_session *local_sdp, 
    607                                  const pjmedia_sdp_session *remote_sdp); 
    608 void stop_video_stream(pjsua_call_media *call_med); 
    609 void set_media_tp_state(pjsua_call_media *call_med, pjsua_med_tp_st tp_st); 
     604void pjsua_set_media_tp_state(pjsua_call_media *call_med, pjsua_med_tp_st tp_st); 
    610605 
    611606/* Callback to receive media events */ 
     
    754749 
    755750/* 
     751 * Audio 
     752 */ 
     753pj_status_t pjsua_aud_subsys_init(void); 
     754pj_status_t pjsua_aud_subsys_start(void); 
     755pj_status_t pjsua_aud_subsys_destroy(void); 
     756void pjsua_aud_stop_stream(pjsua_call_media *call_med); 
     757pj_status_t pjsua_aud_channel_update(pjsua_call_media *call_med, 
     758                                     pj_pool_t *tmp_pool, 
     759                                     pjmedia_stream_info *si, 
     760                                     const pjmedia_sdp_session *local_sdp, 
     761                                     const pjmedia_sdp_session *remote_sdp); 
     762 
     763/* 
    756764 * Video 
    757765 */ 
     
    759767pj_status_t pjsua_vid_subsys_start(void); 
    760768pj_status_t pjsua_vid_subsys_destroy(void); 
     769void pjsua_vid_stop_stream(pjsua_call_media *call_med); 
     770pj_status_t pjsua_vid_channel_init(pjsua_call_media *call_med); 
     771pj_status_t pjsua_vid_channel_update(pjsua_call_media *call_med, 
     772                                     pj_pool_t *tmp_pool, 
     773                                     pjmedia_vid_stream_info *si, 
     774                                     const pjmedia_sdp_session *local_sdp, 
     775                                     const pjmedia_sdp_session *remote_sdp); 
    761776 
    762777#if PJSUA_HAS_VIDEO 
Note: See TracChangeset for help on using the changeset viewer.