Ignore:
Timestamp:
May 24, 2013 4:27:59 AM (11 years ago)
Author:
nanang
Message:

Fixed #1670:

  • Added 'no_rtcp_sdes_bye' to 'pjsua_media_config'.
  • Modified behaviour of video stream in PJSUA to match audio stream behaviour, i.e: always send RTCP SDES when stream starts/stops and send RTCP BYE when stream stops, regardless whether 'no_rtcp_sdes_bye' is set.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_vid.c

    r4341 r4524  
    730730    pj_log_push_indent(); 
    731731 
    732     si->rtcp_sdes_bye_disabled = PJ_TRUE; 
     732    si->rtcp_sdes_bye_disabled = pjsua_var.media_cfg.no_rtcp_sdes_bye;; 
    733733 
    734734    /* Check if no media is active */ 
     
    804804        if (status != PJ_SUCCESS) 
    805805            goto on_error; 
     806 
     807        if (call_med->prev_state == PJSUA_CALL_MEDIA_NONE) 
     808            pjmedia_vid_stream_send_rtcp_sdes(call_med->strm.v.stream); 
    806809 
    807810        /* Setup decoding direction */ 
     
    967970    PJ_LOG(4,(THIS_FILE, "Stopping video stream..")); 
    968971    pj_log_push_indent(); 
     972     
     973    pjmedia_vid_stream_send_rtcp_bye(strm); 
    969974 
    970975    if (call_med->strm.v.cap_win_id != PJSUA_INVALID_ID) { 
Note: See TracChangeset for help on using the changeset viewer.