mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-10 03:16:45 +08:00
fix: 修复 ios 播放异常
- 苹果设备播放时进度条第一次进入会造成无法滚动的问题
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user