fix: 修复 ios 播放异常

- 苹果设备播放时进度条第一次进入会造成无法滚动的问题
This commit is contained in:
2025-09-09 11:26:01 +08:00
parent ee4f1d467b
commit 4ef229013a

View File

@@ -189,16 +189,17 @@ export default {
//document.getElementById('xvideoPlayer').style.display = 'block'
//this.videoContext=uni.createVideoContext("xvideoPlayer", this);
},
inittime(newVal, oldVal) {
this.initPlayingTime = newVal;
//console.log('inittime::',newVal,oldVal)
inittime: {
handler(newVal, oldVal) {
this.initPlayingTime = newVal;
}
}
},
mounted() {
var _this = this
this.initPlayingTime = this.inittime;
this.videoContext = uni.createVideoContext("xvideoPlayer", this);
// document.getElementsByTagName('video')[0].load()
document.getElementsByTagName('video')[0].load()
uni.getSystemInfo({
success: function (info) {
//alert(info.windowWidth)