<template>
	<view class="content">
		<view class="one">
			<video :src="info.path" :page-gesture="true" :show-mute-btn="true" :play-strategy="2"></video>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				info: {},
			};
		},
		onLoad(e) {
			const that = this;
			let info = {
				path: e.path || '',
				name: e.name || ''
			}
			that.$set(that, `info`, info);
			that.search()
		},
		methods: {
			search() {
				const that = this;
				if (that.info && that.info.name) {
					uni.setNavigationBarTitle({
						title: that.info.name
					});
				}
			}
		}
	}
</script>

<style lang="scss">
	.content {
		.one {
			text-align: center;
			padding: 10px;

			video {
				width: 100%;
				height: 250px;
			}
		}


	}
</style>
