mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-10 11:26:47 +08:00
build
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
<!-- :src="url" <video id="xvideoPlayer" :class="fullScreenFlag?'video-scree-rotate':''" :style="{width: fullScreenFlag?videoPageHeight+'px':'100%',height: fullScreenFlag?videoPageWidth+'px': '','margin-left':fullScreenFlag?-1*(videoPageWidth/videoPageHeight*256)+'px':'','top':fullScreenFlag?videoPageHeight/2+'px':''}" -->
|
||||
<video id="xvideoPlayer" :class="fullScreenFlag?'video-scree-rotate':''"
|
||||
:style="{width: fullScreenFlag?videoPageHeight+'px':'100%',height: fullScreenFlag?videoPageWidth+'px': '','margin-left':fullScreenFlag?-1*(videoPageHeight-videoPageWidth)/2+'px':''}"
|
||||
ref="videoPlayer"
|
||||
:src="url"
|
||||
:controls="false"
|
||||
:enable-play-gesture="false"
|
||||
@@ -283,7 +282,9 @@ export default {
|
||||
const u = navigator.userAgent, app = navigator.appVersion;
|
||||
const isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
|
||||
if (isIOS) {
|
||||
this.$refs["videoPlayer"].webkitEnterFullscreen()
|
||||
document.querySelector("#xvideoPlayer").webkitEnterFullscreen()
|
||||
// return
|
||||
// this.$refs["videoPlayer"].webkitEnterFullscreen()
|
||||
}
|
||||
var _this = this
|
||||
if (this.fullScreenFlag) {
|
||||
|
||||
Reference in New Issue
Block a user