<template>
    <view>
        <view class="uni-padding-wrap uni-common-mt">
            <view>
                <video style="width: 100%;" id="myVideo" :src="flow_path"
				 autoplay="true"
				 controls="true"
				 show-fullscreen-btn="true"
				 enable-progress-gesture="false"
                 @error="videoErrorCallback"   ></video>
				 <!-- 
				autoplay 自动播放
				controls 
				 -->
            </view>
        </view>
    </view>
</template>

<script>
	export default {
		data() {
			return {
				flow_path:''
			}
		},
		onLoad(option) {
			this.flow_path = option.flow_path||""
		},
		onReady: function(res) {
			this.videoContext = uni.createVideoContext('myVideo')
		},
		methods: {
			videoErrorCallback: function(e) {
				// uni.showModal({
				// 	content: e.target.errMsg,
				// 	showCancel: false
				// })
			},
		}
	}
</script>

<style>

</style>
