MCPcopy
hub / github.com/648540858/wvp-GB28181-pro / Config

Interface Config

web/public/static/js/jessibuca/jessibuca.d.ts:27–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25 }
26
27 interface Config {
28 /**
29 * 播放器容器
30 * * 若为 string ,则底层调用的是 document.getElementById('id')
31 * */
32 container: HTMLElement | string;
33 /**
34 * 设置最大缓冲时长,单位秒,播放器会自动消除延迟
35 */
36 videoBuffer?: number;
37 /**
38 * worker地址
39 * * 默认引用的是根目录下面的decoder.js文件 ,decoder.js 与 decoder.wasm文件必须是放在同一个目录下面。 */
40 decoder?: string;
41 /**
42 * 是否不使用离屏模式(提升渲染能力)
43 */
44 forceNoOffscreen?: boolean;
45 /**
46 * 是否开启当页面的'visibilityState'变为'hidden'的时候,自动暂停播放。
47 */
48 hiddenAutoPause?: boolean;
49 /**
50 * 是否有音频,如果设置`false`,则不对音频数据解码,提升性能。
51 */
52 hasAudio?: boolean;
53 /**
54 * 设置旋转角度,只支持,0(默认),180,270 三个值
55 */
56 rotate?: boolean;
57 /**
58 * 1. 当为`true`的时候:视频画面做等比缩放后,高或宽对齐canvas区域,画面不被拉伸,但有黑边。 等同于 `setScaleMode(1)`
59 * 2. 当为`false`的时候:视频画面完全填充canvas区域,画面会被拉伸。等同于 `setScaleMode(0)`
60 */
61 isResize?: boolean;
62 /**
63 * 1. 当为`true`的时候:视频画面做等比缩放后,完全填充canvas区域,画面不被拉伸,没有黑边,但画面显示不全。等同于 `setScaleMode(2)`
64 */
65 isFullResize?: boolean;
66 /**
67 * 1. 当为`true`的时候:ws协议不检验是否以.flv为依据,进行协议解析。
68 */
69 isFlv?: boolean;
70 /**
71 * 是否开启控制台调试打
72 */
73 debug?: boolean;
74 /**
75 * 1. 设置超时时长, 单位秒
76 * 2. 在连接成功之前(loading)和播放中途(heart),如果超过设定时长无数据返回,则回调timeout事件
77 */
78 timeout?: number;
79 /**
80 * 1. 设置超时时长, 单位秒
81 * 2. 在连接成功之前,如果超过设定时长无数据返回,则回调timeout事件
82 */
83 heartTimeout?: number;
84 /**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected