方维直播搭建笔记

 1、环境问题:centos7以上比较好,php至少5.5,

2、验证码错误,/www/wwwroot/show/admin/Lib/Action publicxxx 获取缓存失败,待查 ,缓存使用的是redis或者session,配置都没问题。。诡异的问题

3、登录认证成功,跳转还是登录。。。配置了域名。但是使用IP登录导致写入cookie异常,

4、修改管理员密码  密码修改为123456 e10adc3949ba59abbe56e057f20f883e

5、安卓编译的时候提示版本冲突:强制使用某一版本(不是很理想的方案) grade android 提示版本冲突 添加 resolutionStrategy.force ‘com.android.support:support-xxx:23.1.1’

6、安卓修改包只需要修改 grade配置文件中的 url即可

7、定位安卓错误:./public/sys_error 日志文件

8、腾讯IM 用原始openssl命令生成的秘钥可用 ./openssl ec -outform PEM -inform PEM -in private_key -out ec_key.pem

  工具在https://cloud.tencent.com/document/product/268/7656 可以下载
  测试语句 log_err_file(array(__FILE__,__LINE__,__METHOD__,$ret));

9、提示推流已达到最大值  ,定位发现是选择的直播配置不对,应该在后台应用中配置为腾讯用,而非阿里云

10、用户无法观看直播:

需要配置单独的播放域名,cname解析,修改mapi下的播放路径,还等等一段时间看效果,期间可以用腾讯控制台自带得到链接
修改文件:
mapi/lib/core/video_factory.php

11、 腾讯部分截图

 技术群请进:623607229,欢迎交流

腾讯测试播放链接:
http://imgcache.qq.com/open/qcloud/video/vcplayer/demo/tcplayer.html?autoplay=true&m3u8=http://xx.liveplay.myqcloud.com/live/xxxx.m3u8

http://xx.xx.xx/live/xxxx.FLV?txSecret=xxxx&txTime=5CC69974

http://imgcache.qq.com/open/qcloud/video/vcplayer/demo/tcplayer.html?m3u8=http%3A//xxx.xx.top/live/xxxx.m3u8

http://xxx.xxx.xxx/live/xxx.m3u8?txSecret=xxx&txTime=5CC69974

identifier=xxxx&
dkappid=11111

https://console.tim.qq.com/v4/im_open_login_svc/account_import?usersig=xxxxx&identifier=xx&sdkappid=xx&contenttype=json


https://console.tim.qq.com/v4/im_open_login_svc/account_import?usersig=xxxxx&identifier=xx&sdkappid=xx&contenttype=json

猜你喜欢

转载自www.cnblogs.com/ynhi/p/10788810.html