通过play方法来播放视频后会报错,
chrome和safari没有问题,只是小程序webview上有问题
Uncaught (in promise) {
"name": "NotAllowedError",
"message": "The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.",
"stack": "play@[native code]\nAo@
微信版本:8.0.17
手机型号:iPhoneX
系统版本:iOS15.2.1
现在是2023年10月25了,这个问题解决了吗,ios有问题,Android正常
请问这个问题有解决吗。 我ios系统,我视频无法播放,不管是哪个浏览器,chrome,safari都报这个错,安卓手机都正常。
现在都是2023年3月28了,这个问题还没有解决。无语
请问解决了吗 这个问题。。。。
请问后来有解决吗?我这边也是遇到同样的问题
你好,Android正常吗?麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
问题描述:web-view中h5调用input上传视频文件,我这边在处理视频文件时,需要播放截取视频首帧,调用video.play(),就会报错:Unhandled Promise Rejection: NotAllowedError
代码片段:
const video = document.createElement("video");
const videoUrl = URL.createObjectURL(file)
video.src = videoUrl;
video.crossOrigin = "anonymous";
video.preload = "metadata";
video.muted = true
video.play()