- 搭建rtmp服务器 livego
- 小程序先推流到rtmp
- freeswitch 编译mod_av 需要ffmpeg 加速播放的rtmp的 avformat.c
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
没在小程序上测试 用其他工具播放了下感觉行
本文介绍了如何使用LiveGo作为RTMP服务器并结合FreeSwitch进行音视频处理的方法。通过具体的代码示例展示了如何配置和使用FFmpeg来加速播放RTMP流,并提供了如何从手机端发起呼叫及记录会话的具体步骤。
2517

被折叠的 条评论
为什么被折叠?



