Commit 9e0760c8 by Tianqing Liu

feat: 优化编码配置

1 parent 70c670ed
......@@ -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);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!