Commit 0cdb131c by Tianqing Liu

feat: 优化播放器配置

1 parent 0a4e25eb
......@@ -49,15 +49,21 @@ export default {
const options = Object.assign({
container: this.$refs.container,
decoder: '/jessibuca-pro/decoder-pro.js',
isResize: false,
text: '', // TODO: 功能暂不清楚
useMSE: true,
useWCS: false,
isNotMute: false,
timeout: 10,
keepScreenOn: true, // 屏幕常亮
isResize: false,
isNotMute: 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: '加载中...',
controlAutoHide: this.controlAutoHide,
......@@ -82,9 +88,12 @@ export default {
audio: true,
ptz: true, // 云台
zoom: true,
performance: false,
performance: true,
quality: false,
},
extendOperateBtns: [],
showBandwidth: true, // 显示网速
showPerformance: false, // 显示性能
// 云台控制
ptzClickType: 'click', // click mouseDownAndUp
ptzZoomShow: true,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!