poster="https://i.postimg.cc/Twd5mCxF/20210526102007.png"
src="http://103.148.127.241/media/static/video/video1.mp4"
controls
@fullscreenchange='full' direction="-90" >
<cover-view class="controls-title" @click="clickFull"></cover-view>
</video>
</view>
</template>
<script>
export default {
data() {
return {
isContent_Active: false,
isVideo_Active: false
}
},
onLoad() {
},
methods: {
full(){
console.log('点击全屏按钮或者退出全屏')
},
clickFull(){
console.log(1111)
this.isVideo_Active = this.isContent_Active = !this.isContent_Active;
}
}
}
</script>
<style lang="less">
//默认横盘样式
.content{
height: 100vh;
position: relative;
display: flex;
justify-content: center;
align-items: center;
.testVideo{
height: 100vw;
width: 100vh;
transform: rotate(90deg);
position: absolute;
transition: 0.4s;
.controls-title{
position: absolute;
right: 0;
bottom: 0;
width: 20px;
height: 20px;
background-color: red;
}
}
}
</style>