<template>
    <view class="bg">
        <video class="video" :src="query.src" show-snapshot-button object-fit="contain" >

        </video>
    </view>
</template>

<script>
    export default {
        data() {
            return {
                query:{
                    src:''
                }
             
            }
        },
        onLoad(query){
            this.query =query
            
        }
        
    }
</script>

<style lang="scss" scoped>
.bg{
    width: 100%;
}
.video{
    width: 100%;
}
</style>