40 lines
703 B
Vue
40 lines
703 B
Vue
<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> -->
|
|
<video 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: 40rpx;
|
|
text-align: center;
|
|
}
|
|
</style>
|