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