Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
M
mmc-stl-vue2
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Administrator
mmc-stl-vue2
Commits
72f140b3
提交
72f140b3
authored
7月 07, 2023
作者:
翁进城
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
播放器增加悬浮按钮案例
上级
04bbf2c3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
41 行增加
和
35 行删除
+41
-35
package.json
vue2/package.json
+1
-1
demo.js
vue2/src/views/player/demo.js
+20
-17
demo.vue
vue2/src/views/player/demo.vue
+20
-17
没有找到文件。
vue2/package.json
浏览文件 @
72f140b3
...
...
@@ -3,7 +3,7 @@
"version"
:
"0.1.0"
,
"private"
:
true
,
"scripts"
:
{
"
serve
"
:
"vue-cli-service serve"
,
"
dev
"
:
"vue-cli-service serve"
,
"build"
:
"vue-cli-service build"
,
"lint"
:
"vue-cli-service lint"
},
...
...
vue2/src/views/player/demo.js
浏览文件 @
72f140b3
...
...
@@ -17,7 +17,9 @@ export default `
:obstacleData="obstacleData"
:isCenter="true"
:size="1"
></MMCPlayer>
>
<el-button class="test-btn">测试悬浮按钮</el-button>
</MMCPlayer>
</div>
</template>
...
...
@@ -28,34 +30,29 @@ export default {
streamOptions: [
{
label: "flv",
brand: "flv", //支持以下品牌播放器"srs|fly|liveNVR|QingLiu|webrtc", 为空则根据url判断使用liveNVR或QingLiu
url:
"https://sf1-hscdn-tos.pstatp.com/obj/media-fe/xgplayer_doc_video/flv/xgplayer-demo-360p.flv",
brand: "flv", //支持以下品牌播放器"srs|fly|liveNVR|QingLiu|webrtc", 为空则根据url判断使用liveNVR或QingLiu
url: "https://sf1-hscdn-tos.pstatp.com/obj/media-fe/xgplayer_doc_video/flv/xgplayer-demo-360p.flv",
},
{
label: "liveNVR",
brand: 'liveNVR',
url:
"http://pull.mmcuav.cn/live/1680771689946.m3u8",
fpvUrl: //只有liveNVR支持fpvUrl
"webrtc://live.mmcuav.cn/hls/shouguang01",
brand: "liveNVR",
url: "http://pull.mmcuav.cn/live/1680771689946.m3u8",
//只有liveNVR支持fpvUrl
fpvUrl: "webrtc://live.mmcuav.cn/hls/shouguang01",
},
{
label: "srs",
brand: 'srs',
url:
"webrtc://live.mmcuav.cn/hls/shouguang01",
brand: "srs",
url: "webrtc://live.mmcuav.cn/hls/shouguang01",
},
{
label: "QingLiu",
url:
"pzsp://pzlink999bju.powzamedia.com:7788/live/ld/trans/test/mlinkm/channel1?ndselect=2&linkmode=8&fstusrd=1&us=1&wsinfo=pzlink999bju.powzamedia.com-13000&only-video=1&rct=500",
url: "pzsp://pzlink999bju.powzamedia.com:7788/live/ld/trans/test/mlinkm/channel1?ndselect=2&linkmode=8&fstusrd=1&us=1&wsinfo=pzlink999bju.powzamedia.com-13000&only-video=1&rct=500",
},
{
label: "WebRtc",
brand: 'webrtc',
url:
"webrtc://live.mmcuav.cn/hls/shouguang01",
brand: "webrtc",
url: "webrtc://live.mmcuav.cn/hls/shouguang01",
},
],
obstacleData: null,
...
...
@@ -87,5 +84,10 @@ export default {
</script>
<style lang="scss" scoped>
.test-btn {
position: absolute;
top: 50%;
left: 50%;
}
</style>
`
;
\ No newline at end of file
vue2/src/views/player/demo.vue
浏览文件 @
72f140b3
...
...
@@ -7,7 +7,9 @@
:obstacleData=
"obstacleData"
:isCenter=
"true"
:size=
"1"
></MMCPlayer>
>
<el-button
class=
"test-btn"
>
测试悬浮按钮
</el-button>
</MMCPlayer>
</div>
</
template
>
...
...
@@ -18,34 +20,29 @@ export default {
streamOptions
:
[
{
label
:
"flv"
,
brand
:
"flv"
,
//支持以下品牌播放器"srs|fly|liveNVR|QingLiu|webrtc", 为空则根据url判断使用liveNVR或QingLiu
url
:
"https://sf1-hscdn-tos.pstatp.com/obj/media-fe/xgplayer_doc_video/flv/xgplayer-demo-360p.flv"
,
brand
:
"flv"
,
//支持以下品牌播放器"srs|fly|liveNVR|QingLiu|webrtc", 为空则根据url判断使用liveNVR或QingLiu
url
:
"https://sf1-hscdn-tos.pstatp.com/obj/media-fe/xgplayer_doc_video/flv/xgplayer-demo-360p.flv"
,
},
{
label
:
"liveNVR"
,
brand
:
'liveNVR'
,
url
:
"http://pull.mmcuav.cn/live/1680771689946.m3u8"
,
fpvUrl
:
//只有liveNVR支持fpvUrl
"webrtc://live.mmcuav.cn/hls/shouguang01"
,
brand
:
"liveNVR"
,
url
:
"http://pull.mmcuav.cn/live/1680771689946.m3u8"
,
//只有liveNVR支持fpvUrl
fpvUrl
:
"webrtc://live.mmcuav.cn/hls/shouguang01"
,
},
{
label
:
"srs"
,
brand
:
'srs'
,
url
:
"webrtc://live.mmcuav.cn/hls/shouguang01"
,
brand
:
"srs"
,
url
:
"webrtc://live.mmcuav.cn/hls/shouguang01"
,
},
{
label
:
"QingLiu"
,
url
:
"pzsp://pzlink999bju.powzamedia.com:7788/live/ld/trans/test/mlinkm/channel1?ndselect=2&linkmode=8&fstusrd=1&us=1&wsinfo=pzlink999bju.powzamedia.com-13000&only-video=1&rct=500"
,
url
:
"pzsp://pzlink999bju.powzamedia.com:7788/live/ld/trans/test/mlinkm/channel1?ndselect=2&linkmode=8&fstusrd=1&us=1&wsinfo=pzlink999bju.powzamedia.com-13000&only-video=1&rct=500"
,
},
{
label
:
"WebRtc"
,
brand
:
'webrtc'
,
url
:
"webrtc://live.mmcuav.cn/hls/shouguang01"
,
brand
:
"webrtc"
,
url
:
"webrtc://live.mmcuav.cn/hls/shouguang01"
,
},
],
obstacleData
:
null
,
...
...
@@ -77,4 +74,9 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
.test-btn
{
position
:
absolute
;
top
:
50%
;
left
:
50%
;
}
</
style
>
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论