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 9e0760c8
authored
Sep 22, 2023
by
Tianqing Liu
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 优化编码配置
1 parent
70c670ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
h5/src/components/vionPlayer/index.vue
h5/src/components/vionPlayer/index.vue
View file @
9e0760c
...
...
@@ -3,7 +3,7 @@
</
template
>
<
script
>
//
import { watermarkBase64 } from './data';
//
checkSupportMSEHevc checkSupportSIMD, checkSupportWCSHevc
import
{
getWatermarkCanvasImg
}
from
'./utils'
;
export
default
{
...
...
@@ -65,9 +65,11 @@ export default {
videoBuffer
:
0.1
,
// 缓存时长
videoBufferDelay
:
0.2
,
// 缓存延迟(延迟超过会触发丢帧)
// TODO: 是否通过浏览器API判断是否支持后,再赋值true或false
useMSE
:
true
,
useWCS
:
false
,
// useSIMD: true,
// useMSE: false,
// useWCS: checkSupportWCSHevc(),
// useWCS: false,
// useSIMD: checkSupportSIMD(),
// wcsUseVideoRender: checkSupportWCSHevc(),
// useWebFullScreen: true, // ios可能不支持系统级别全屏,可能要使用此配置
timeout
:
10
,
// 在连接成功之前(loading)和播放中途(heart),如果超过设定时长无数据返回,则回调timeout事件
...
...
@@ -106,6 +108,7 @@ export default {
ptzFocusShow
:
true
,
});
// console.log('init-options', options);
this
.
_jessibuca
=
new
window
.
JessibucaPro
(
options
);
this
.
registerEvent
(
this
.
_jessibuca
);
...
...
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