chore:横竖屏
This commit is contained in:
@@ -25,14 +25,8 @@
|
|||||||
:src="videoUrl"
|
:src="videoUrl"
|
||||||
:poster="posterUrl"
|
:poster="posterUrl"
|
||||||
:style="videoWarpCss"
|
:style="videoWarpCss"
|
||||||
objectFit="cover"
|
|
||||||
controls
|
controls
|
||||||
muted
|
|
||||||
autoplay
|
|
||||||
show-center-play-btn
|
|
||||||
@loadedmetadata="onVideoLoaded"
|
@loadedmetadata="onVideoLoaded"
|
||||||
@play="onVideoPlay"
|
|
||||||
@pause="onVideoPause"
|
|
||||||
@error="onVideoError"
|
@error="onVideoError"
|
||||||
></video>
|
></video>
|
||||||
<!-- #endif -->
|
<!-- #endif -->
|
||||||
@@ -240,9 +234,8 @@ export default {
|
|||||||
/* 微信小程序端样式 */
|
/* 微信小程序端样式 */
|
||||||
/* #ifdef MP-WEIXIN */
|
/* #ifdef MP-WEIXIN */
|
||||||
.mp-video {
|
.mp-video {
|
||||||
position: absolute;
|
width: 100%;
|
||||||
top: 0;
|
height: 100%;
|
||||||
left: 0;
|
|
||||||
}
|
}
|
||||||
/* #endif */
|
/* #endif */
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user