소스 검색

bug 修复

lilei 4 년 전
부모
커밋
009db14fb4
4개의 변경된 파일22개의 추가작업 그리고 1개의 파일을 삭제
  1. 7 0
      hybrid/html/ddvideo.html
  2. 7 0
      hybrid/html/video.html
  3. 1 1
      unpackage/dist/dev/app-plus/app-service.js
  4. 7 0
      unpackage/dist/dev/app-plus/hybrid/html/video.html

+ 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() {

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 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() {

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.