<template>
	<view class="fullHeight">
		<headers :showBack="true">
			<view class="headerName">
				媒体播放
			</view>
		</headers>
		<audio v-if="type=='audio'" :src="url" controls class="myVideo"></audio>
		<video v-else id="myVideo" class="myVideo" :src="url" controls autoplay></video>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				url:'',
				type:''
			}
		},
		onLoad(options) {
			this.url=options.url
			this.type=options.type
		},
		methods: {
			
		}
	}
</script>

<style scoped>
.myVideo{
	width: 100%;
	height: 300px;
	margin-top: 20px;
	text-align: center;
}
</style>
