From: Seven Du Date: Fri, 29 May 2015 22:36:54 +0000 (+0800) Subject: detect more deep too see if we should offer video X-Git-Tag: v1.6.2~604 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5da76480ba278a8af5c74e7c804d51fce804101e;p=thirdparty%2Ffreeswitch.git detect more deep too see if we should offer video --- diff --git a/src/mod/endpoints/mod_rtmp/mod_rtmp.c b/src/mod/endpoints/mod_rtmp/mod_rtmp.c index b67f326b82..5aa8bbb1d8 100644 --- a/src/mod/endpoints/mod_rtmp/mod_rtmp.c +++ b/src/mod/endpoints/mod_rtmp/mod_rtmp.c @@ -739,6 +739,12 @@ switch_call_cause_t rtmp_outgoing_channel(switch_core_session_t *session, switch video_possible = switch_channel_get_variable(switch_core_session_get_channel(session), "video_possible"); if (video_possible && switch_true(video_possible)) { tech_pvt->has_video = 1; + } else { + const char *codec_string = switch_channel_get_variable(switch_core_session_get_channel(session), "ep_codec_string"); + + if (codec_string && (switch_stristr("H26", codec_string) || switch_stristr("VP", codec_string))) { + tech_pvt->has_video = 1; + } } }