Commit d622cd51 authored by Ghislain MARY's avatar Ghislain MARY

Add functions to enable/disable adaptive jitter compensation.

parent 21e7c96f
......@@ -233,6 +233,9 @@ MS2_PUBLIC void audio_stream_set_echo_canceller_params(AudioStream *st, int tail
/*enable adaptive rate control */
MS2_PUBLIC void audio_stream_enable_adaptive_bitrate_control(AudioStream *st, bool_t enabled);
/* Enable adaptive jitter compensation */
MS2_PUBLIC void audio_stream_enable_adaptive_jittcomp(AudioStream *st, bool_t enabled);
MS2_PUBLIC void audio_stream_set_mic_gain(AudioStream *stream, float gain);
......@@ -337,6 +340,7 @@ typedef struct _VideoStream VideoStream;
MS2_PUBLIC VideoStream *video_stream_new(int loc_rtp_port, int loc_rtcp_port, bool_t use_ipv6);
MS2_PUBLIC void video_stream_set_direction(VideoStream *vs, VideoStreamDir dir);
MS2_PUBLIC void video_stream_enable_adaptive_bitrate_control(VideoStream *s, bool_t yesno);
MS2_PUBLIC void video_stream_enable_adaptive_jittcomp(VideoStream *st, bool_t enabled);
MS2_PUBLIC void video_stream_set_render_callback(VideoStream *s, VideoStreamRenderCallback cb, void *user_pointer);
MS2_PUBLIC void video_stream_set_event_callback(VideoStream *s, VideoStreamEventCallback cb, void *user_pointer);
MS2_PUBLIC void video_stream_set_display_filter_name(VideoStream *s, const char *fname);
......
......@@ -599,6 +599,10 @@ void audio_stream_enable_adaptive_bitrate_control(AudioStream *st, bool_t enable
st->use_rc=enabled;
}
void audio_stream_enable_adaptive_jittcomp(AudioStream *st, bool_t enabled) {
rtp_session_enable_adaptive_jitter_compensation(st->session, enabled);
}
int audio_stream_start_with_files(AudioStream *stream, RtpProfile *prof,const char *remip, int remport,
int rem_rtcp_port, int pt,int jitt_comp, const char *infile, const char * outfile)
{
......
......@@ -248,6 +248,10 @@ void video_stream_enable_adaptive_bitrate_control(VideoStream *s, bool_t yesno){
s->use_rc=yesno;
}
void video_stream_enable_adaptive_jittcomp(VideoStream *st, bool_t enabled) {
rtp_session_enable_adaptive_jitter_compensation(st->session, enabled);
}
void video_stream_set_render_callback (VideoStream *s, VideoStreamRenderCallback cb, void *user_pointer){
s->rendercb=cb;
s->render_pointer=user_pointer;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment