Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
蒋秀川
/
miniProject
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 0cdb131c
authored
Sep 21, 2023
by
Tianqing Liu
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 优化播放器配置
1 parent
0a4e25eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
h5/src/components/vionPlayer/index.vue
h5/src/components/vionPlayer/index.vue
View file @
0cdb131
...
@@ -49,15 +49,21 @@ export default {
...
@@ -49,15 +49,21 @@ export default {
const
options
=
Object
.
assign
({
const
options
=
Object
.
assign
({
container
:
this
.
$refs
.
container
,
container
:
this
.
$refs
.
container
,
decoder
:
'/jessibuca-pro/decoder-pro.js'
,
decoder
:
'/jessibuca-pro/decoder-pro.js'
,
isResize
:
false
,
text
:
''
,
// TODO: 功能暂不清楚
text
:
''
,
// TODO: 功能暂不清楚
useMSE
:
true
,
useWCS
:
false
,
isNotMute
:
false
,
timeout
:
10
,
keepScreenOn
:
true
,
// 屏幕常亮
keepScreenOn
:
true
,
// 屏幕常亮
isResize
:
false
,
isNotMute
:
false
,
debug
:
false
,
// 是否开启控制台调试打印
debug
:
false
,
// 是否开启控制台调试打印
// 播放相关
videoBuffer
:
0.1
,
// 缓存时长
videoBufferDelay
:
0.2
,
// 缓存延迟(延迟超过会触发丢帧)
// TODO: 是否通过浏览器API判断是否支持后,再赋值true或false
useMSE
:
true
,
useWCS
:
false
,
// useSIMD: true,
timeout
:
10
,
// 在连接成功之前(loading)和播放中途(heart),如果超过设定时长无数据返回,则回调timeout事件
// 按钮和界面
// 按钮和界面
loadingText
:
'加载中...'
,
loadingText
:
'加载中...'
,
controlAutoHide
:
this
.
controlAutoHide
,
controlAutoHide
:
this
.
controlAutoHide
,
...
@@ -82,9 +88,12 @@ export default {
...
@@ -82,9 +88,12 @@ export default {
audio
:
true
,
audio
:
true
,
ptz
:
true
,
// 云台
ptz
:
true
,
// 云台
zoom
:
true
,
zoom
:
true
,
performance
:
false
,
performance
:
true
,
quality
:
false
,
},
},
extendOperateBtns
:
[],
extendOperateBtns
:
[],
showBandwidth
:
true
,
// 显示网速
showPerformance
:
false
,
// 显示性能
// 云台控制
// 云台控制
ptzClickType
:
'click'
,
// click mouseDownAndUp
ptzClickType
:
'click'
,
// click mouseDownAndUp
ptzZoomShow
:
true
,
ptzZoomShow
:
true
,
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment