lilei 4 éve
szülő
commit
009db14fb4

+ 7 - 0
hybrid/html/ddvideo.html

@@ -302,6 +302,13 @@
 						_this.player.on('error', function(e) {
 							console.log(JSON.stringify(e), 'error')
 						})
+						// 全屏时设置横屏
+						_this.player.on('requestFullScreen', function(e) {
+							plus.screen.lockOrientation('landscape-primary')
+						})
+						_this.player.on('cancelFullScreen', function(e) {
+							plus.screen.lockOrientation('portrait-primary')
+						})
 					},
 					// 发送消息给app 页面
 					sendMsg(action, msg) {

+ 7 - 0
hybrid/html/video.html

@@ -354,6 +354,13 @@
 						_this.player.on('error', function(e) {
 							console.log(JSON.stringify(e), 'error')
 						})
+						// 全屏时设置横屏
+						_this.player.on('requestFullScreen', function(e) {
+							plus.screen.lockOrientation('landscape-primary')
+						})
+						_this.player.on('cancelFullScreen', function(e) {
+							plus.screen.lockOrientation('portrait-primary')
+						})
 					},
 					// 耗时计算
 					haoshi() {

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 1 - 1
unpackage/dist/dev/app-plus/app-service.js


+ 7 - 0
unpackage/dist/dev/app-plus/hybrid/html/video.html

@@ -354,6 +354,13 @@
 						_this.player.on('error', function(e) {
 							console.log(JSON.stringify(e), 'error')
 						})
+						// 全屏时设置横屏
+						_this.player.on('requestFullScreen', function(e) {
+							plus.screen.lockOrientation('landscape-primary')
+						})
+						_this.player.on('cancelFullScreen', function(e) {
+							plus.screen.lockOrientation('portrait-primary')
+						})
 					},
 					// 耗时计算
 					haoshi() {

Nem az összes módosított fájl került megjelenítésre, mert túl sok fájl változott