2023-06-07 10:48:30 +00:00
|
|
|
<template>
|
|
|
|
<el-main>
|
|
|
|
<el-alert title="播放器使用来自西瓜视频的西瓜播放器xgplayer" type="success" style="margin-bottom:20px;"></el-alert>
|
|
|
|
<el-row :gutter="15">
|
|
|
|
<el-col :lg="12">
|
|
|
|
<el-card shadow="never" header="MP4点播">
|
|
|
|
<sc-video :src="playUrl" :options="options"></sc-video>
|
|
|
|
</el-card>
|
|
|
|
</el-col>
|
|
|
|
<el-col :lg="12">
|
|
|
|
<el-card shadow="never" header="HlS(m3u8)直播">
|
|
|
|
<el-row :gutter="1">
|
|
|
|
<el-col :span="12">
|
|
|
|
<sc-video :src="liveUrl" isLive :options="{volume: 0}"></sc-video>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="12">
|
|
|
|
<sc-video :src="liveUrl_2" isLive :options="{volume: 0}"></sc-video>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
<el-row :gutter="1" style="margin-top: 1px;">
|
|
|
|
<el-col :span="12">
|
|
|
|
<sc-video :src="liveUrl_3" isLive :options="{volume: 0}"></sc-video>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="12">
|
|
|
|
<sc-video :src="liveUrl_4" isLive :options="{volume: 0}"></sc-video>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-card>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-main>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2023-07-21 11:22:50 +00:00
|
|
|
import xVideo from '@/components/xVideo'
|
2023-06-07 10:48:30 +00:00
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'scvideo',
|
|
|
|
components: {
|
2023-07-21 11:22:50 +00:00
|
|
|
xVideo
|
2023-06-07 10:48:30 +00:00
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
playUrl: "https://fastly.jsdelivr.net/gh/scuiadmin/CDN/video/scui-player-demo-720.mp4",
|
|
|
|
options: {
|
|
|
|
poster: "https://fastly.jsdelivr.net/gh/scuiadmin/CDN/video/scui-player-demo-1080_Moment.jpg",
|
|
|
|
pip: true
|
|
|
|
},
|
|
|
|
liveUrl: "http://local.live.jxtvcn.com.cn/live-jxtv/tv_jxtv1.m3u8",
|
|
|
|
liveUrl_2: "http://local.live.jxtvcn.com.cn/live-jxtv/tv_jxtv6.m3u8",
|
|
|
|
liveUrl_3: "http://local.live.jxtvcn.com.cn/live-jxtv/tv_jxtv7.m3u8",
|
|
|
|
liveUrl_4: "http://local.live.jxtvcn.com.cn/live-jxtv/tv_jxtv8.m3u8",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
</style>
|