Commit 06b53e9d authored by Simon Morlat's avatar Simon Morlat
Browse files

add dscp setters

parent 1a267bd2
......@@ -278,6 +278,8 @@ MS2_PUBLIC void audio_stream_enable_zrtp(AudioStream *stream, OrtpZrtpParams *pa
/* enable SRTP on the audio stream */
MS2_PUBLIC bool_t audio_stream_enable_strp(AudioStream* stream, enum ortp_srtp_crypto_suite_t suite, const char* snd_key, const char* rcv_key);
MS2_PUBLIC int audio_stream_set_dscp(AudioStream *stream, int dscp);
Video Support
......@@ -386,6 +388,8 @@ MS2_PUBLIC bool_t video_stream_enable_strp(VideoStream* stream, enum ortp_srtp_c
/* if enabled, the display filter will internaly rotate the video, according to the device orientation */
MS2_PUBLIC void video_stream_enable_display_filter_auto_rotate(VideoStream* stream, bool_t enable);
MS2_PUBLIC int video_stream_set_dscp(VideoStream *stream, int dscp);
* Small API to display a local preview window.
......@@ -714,6 +714,11 @@ AudioStream *audio_stream_new(int loc_rtp_port, int loc_rtcp_port, bool_t ipv6){
return stream;
int audio_stream_set_dscp(AudioStream *stream, int dscp){
ms_message("Setting DSCP to %i for audio stream.",dscp);
return rtp_session_set_dscp(stream->session,dscp);
void audio_stream_play_received_dtmfs(AudioStream *st, bool_t yesno){
......@@ -227,6 +227,11 @@ VideoStream *video_stream_new(int loc_rtp_port, int loc_rtcp_port, bool_t use_ip
return stream;
int video_stream_set_dscp(VideoStream *stream, int dscp){
ms_message("Setting DSCP to %i for video stream.",dscp);
return rtp_session_set_dscp(stream->session,dscp);
void video_stream_set_sent_video_size(VideoStream *stream, MSVideoSize vsize){
ms_message("Setting video size %dx%d", vsize.width, vsize.height);
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