赞
踩
if(strstr(filename,rtmp)){
av_dict_set(&dic, "fflags", "nobuffer", 0);
av_dict_set(&dic, "analyzeduration", "50000", 0);
av_dict_set(&opts, "timeout", "6000", 0);
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "include rtmp");
}
if ((error = avformat_open_input(&context->fc, filename, NULL, &dic)) < 0)
4、呼叫手机
originate {RECORD_READ_ONLY=true,execute_on_media='record_session rtmp://192.168.1.101/live/a1'}sofia/gateway/gw/188xxxx &playback(av://rtmp://192.168.1.101/live/a1)
5.小程序播放rtmp
没在小程序上测试 用其他工具播放了下感觉行
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。