IOS上updateVideoPlayer:fail invalid param

发布于 6 年前作者 junxu10912 次浏览最后编辑 6 年前来自 ask

使用阿里云的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>

4 回复
wei94
wei941 楼6 年前

我的问题和你一样

ming55
ming552 楼6 年前

最后是去除 防盗链 ,解决了问题。

hsu
hsu4 楼5 年前

经过抓包发现,ios端的请求referer为空,而安卓端的为:https://servicewechat.com/&lt;appid&gt;/