<template>
	<view>

		<video style="width: 100%; height: 100vh;" :src="url" codec="software" :play-strategy="0" controls show-fullscreen-btn="true" autoplay></video>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				url: "",
			};
		},
		onLoad() {
			// #ifndef APP-NVUE
			const eventChannel = this.getOpenerEventChannel();
			// #endif
			// 监听acceptDataFromOpenerPage事件，获取上一页面通过eventChannel传送到当前页面的数据
			eventChannel.on('acceptDataFromOpenerPage', (data) => {
				console.log(data)
				
				uni.setNavigationBarTitle({
					title: data.title
				})
				
				this.url = data.url
				
			})

		}
	}
</script>

<style lang="scss">

</style>
