Ignore:
Timestamp:
Mar 27, 2019 1:53:57 AM (5 years ago)
Author:
ming
Message:

Fixed #2186: Enable video stream keep alive mechanism

  • Also add video stream port to video conf when call is on local hold in order for video stream to keep sending keep-alive.
File:
1 edited

Legend:

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

    r5945 r5960  
    11581158            call_med->strm.v.cap_win_id = wid; 
    11591159            pj_log_pop_indent(); 
     1160 
     1161        } else if (si->dir & PJMEDIA_DIR_ENCODING && call->local_hold) { 
     1162            /* This is similar as above, but we are on local hold. So 
     1163             * we just get the stream encoding port and add it to the 
     1164             * video conference, in order for the stream to be able to 
     1165             * keep sending keep-alive. 
     1166             */ 
     1167            PJ_LOG(4,(THIS_FILE, "Setting up TX..")); 
     1168 
     1169            status = pjmedia_vid_stream_get_port(call_med->strm.v.stream, 
     1170                                                 PJMEDIA_DIR_ENCODING, 
     1171                                                 &media_port); 
     1172            if (status != PJ_SUCCESS) 
     1173                goto on_error; 
     1174 
     1175            status = pjsua_vid_conf_add_port(tmp_pool, media_port, NULL, 
     1176                                             &call_med->strm.v.strm_enc_slot); 
     1177            if (status != PJ_SUCCESS) 
     1178                goto on_error; 
    11601179        } 
    11611180 
Note: See TracChangeset for help on using the changeset viewer.