[mod_dptools] early video decode and debug

This commit is contained in:
Seven Du 2020-07-03 10:47:03 +08:00 committed by Seven Du
parent aae2e08cca
commit c1837909b1

View File

@ -1401,6 +1401,12 @@ SWITCH_STANDARD_APP(answer_function)
if (switch_stristr("is_conference", arg)) {
switch_channel_set_flag(channel, CF_CONFERENCE);
}
if (switch_stristr("decode_video", arg)) {
switch_channel_set_flag_recursive(channel, CF_VIDEO_DECODED_READ);
}
if (switch_stristr("debug_video", arg)) {
switch_channel_set_flag_recursive(channel, CF_VIDEO_DEBUG_READ);
}
}
switch_channel_answer(channel);