Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
mediastreamer2
Commits
d622cd51
Commit
d622cd51
authored
Aug 27, 2012
by
Ghislain MARY
Browse files
Add functions to enable/disable adaptive jitter compensation.
parent
21e7c96f
Changes
3
Hide whitespace changes
Inline
Side-by-side
include/mediastreamer2/mediastream.h
View file @
d622cd51
...
...
@@ -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
);
...
...
src/audiostream.c
View file @
d622cd51
...
...
@@ -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
)
{
...
...
src/videostream.c
View file @
d622cd51
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment