当前位置:   article > 正文

freeswitch rtmp 小程序实现sip通话构想_freeswitch 小程序

freeswitch 小程序

  1. 搭建rtmp服务器 livego
  2. 小程序先推流到rtmp 
  3. 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

没在小程序上测试  用其他工具播放了下感觉行

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/326185
推荐阅读
相关标签
  

闽ICP备14008679号