修改
This commit is contained in:
parent
6dbf99a798
commit
69a4d097cb
@ -89,6 +89,16 @@
|
|||||||
// 锁定竖屏
|
// 锁定竖屏
|
||||||
plus.screen.lockOrientation("portrait-primary");
|
plus.screen.lockOrientation("portrait-primary");
|
||||||
},
|
},
|
||||||
|
onHide() {
|
||||||
|
var that = this
|
||||||
|
uni.getSystemInfo({
|
||||||
|
success: function(res) {
|
||||||
|
if (res.platform == 'ios') {
|
||||||
|
that.videoContext.exitFullScreen();
|
||||||
|
} else {}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
//播放进度变化
|
//播放进度变化
|
||||||
videotimeupdate(e) {
|
videotimeupdate(e) {
|
||||||
|
|||||||
@ -79,6 +79,16 @@
|
|||||||
videoerroshow: true,
|
videoerroshow: true,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
onHide() {
|
||||||
|
var that = this
|
||||||
|
uni.getSystemInfo({
|
||||||
|
success: function(res) {
|
||||||
|
if (res.platform == 'ios') {
|
||||||
|
that.videoContext.exitFullScreen();
|
||||||
|
} else {}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
onLaunch: function() {
|
onLaunch: function() {
|
||||||
// 锁定横屏
|
// 锁定横屏
|
||||||
// plus.screen.lockOrientation("landscape-primary");
|
// plus.screen.lockOrientation("landscape-primary");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user