This commit is contained in:
曹辉 2023-04-28 09:29:53 +08:00
parent 8dee015d95
commit 6f9ce48dfd
2 changed files with 12 additions and 0 deletions

View File

@ -83,6 +83,12 @@
videoContext: undefined, videoContext: undefined,
}; };
}, },
onLaunch: function() {
// 锁定横屏
// plus.screen.lockOrientation("landscape-primary");
// 锁定竖屏
plus.screen.lockOrientation("portrait-primary");
},
methods: { methods: {
//播放进度变化 //播放进度变化
videotimeupdate(e) { videotimeupdate(e) {

View File

@ -79,6 +79,12 @@
videoerroshow: true, videoerroshow: true,
}; };
}, },
onLaunch: function() {
// 锁定横屏
// plus.screen.lockOrientation("landscape-primary");
// 锁定竖屏
plus.screen.lockOrientation("portrait-primary");
},
methods: { methods: {
//播放进度变化 //播放进度变化
videotimeupdate(e) { videotimeupdate(e) {