使用阿里云的OSS+防盜鏈方式做視頻播放,在安卓版的微信上可以正常播放;
在IOS上報錯:updateVideoPlayer:fail invalid param
請問怎么回事?
視頻設置如下:
<video id="myVideo" style="height:{{videoHeight}}px;width:{{videoWidth}}px" src="http://kkk.oss-cn-shenzhen.aliyuncs.com/oan.mp4" <="" p="">
binderror="videoErrorCallback" danmu-list="{{danmuList}}" enable-danmu danmu-btn controls>
網(wǎng)友回復:
經(jīng)過抓包發(fā)現(xiàn),ios端的請求referer為空,而安卓端的為:https://servicewechat.com/<appid>/...
我的問題和你一樣
https://developers.weixin.qq.com/blogdetail?action=get_post_info&docid=5869681640cfc690668dd27a34967248&token=1549089997&lang=zh_CN
最后是去除 防盜鏈 ,解決了問題。