|
@@ -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) {
|