fix: 修复 ios 播放异常

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

View File

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