gaoshp
2024-11-19 f29900986f01cf5d39b5755cec674825cef27961
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<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>
    import scVideo from '@/components/scVideo'
 
    export default {
        name: 'scvideo',
        components: {
            scVideo
        },
        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>