Ignore:
Timestamp:
Mar 27, 2019 1:53:57 AM (3 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/pjmedia/src/pjmedia/vid_stream.c

    r5939 r5960  
    7474 */ 
    7575#define MIN_CHUNKS_PER_FRM      30 
    76  
    77 /* Video stream keep-alive feature is currently disabled. */ 
    78 #if defined(PJMEDIA_STREAM_ENABLE_KA) && PJMEDIA_STREAM_ENABLE_KA != 0 
    79 #   undef PJMEDIA_STREAM_ENABLE_KA 
    80 #   define PJMEDIA_STREAM_ENABLE_KA 0 
    81 #endif 
    8276 
    8377 
     
    908902        dtx_duration = pj_timestamp_diff32(&stream->last_frm_ts_sent,  
    909903                                           &frame->timestamp); 
    910         /* Video stream keep-alive feature is currently disabled. */ 
    911         /* 
     904 
    912905        if (dtx_duration > 
    913             PJMEDIA_STREAM_KA_INTERVAL * 
    914             PJMEDIA_PIA_SRATE(&channel->port.info)) 
     906            PJMEDIA_STREAM_KA_INTERVAL * stream->info.codec_info.clock_rate) 
    915907        { 
    916908            send_keep_alive_packet(stream); 
    917909            stream->last_frm_ts_sent = frame->timestamp; 
    918910        } 
    919         */ 
    920911    } 
    921912#endif 
Note: See TracChangeset for help on using the changeset viewer.