Skip to content

Commit

Permalink
Merge branch 'master' into beta
Browse files Browse the repository at this point in the history
  • Loading branch information
vanjoge committed Nov 24, 2023
2 parents 105aa1b + 8552fb8 commit 87475c4
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 4 deletions.
28 changes: 27 additions & 1 deletion JsAccess.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,23 @@ defaultConfig = {
//参数1 id 表示第几个分屏 从1开始
//参数2 timestamp 时间戳
onTimeStamp:null,
//分屏双击回调,
//参数1 id 表示第几个分屏 从1开始
//参数2 UCVideo对象
//返回值 true表示取消双击放大
onUcDbclick: null,
//流量统计回调,
//参数1 KBps 数值,建议toFixed(2)后再显示
//参数2 id 表示第几个分屏 从1开始
//参数3 UCVideo对象
onKBpsChange: null,
//本地录像完成回调,
//参数1 录像Blob
//参数2 录像信息 { type, sim, channel, startTime, stopTime}
//参数3 id 表示第几个分屏 从1开始
//参数4 UCVideo对象
//返回值 true表示取消自动下载
onEndRecord: null,
},
//初始化完成通知
callback: null,
Expand All @@ -172,7 +189,14 @@ defaultConfig = {
//以下参数可调用方法时修改
//token类型 0:不启用 1:一次有效随机码,需先通过后端接口申请 2:RSA加密当前时间戳
tokenType: 0,
//token
token: null,
//选中时取消分屏静音
unmuteBySelected: true,
//选中分屏zindex
selectedZIndex: 999,
//启用双击放大单窗口
enableDbcZoom: true,
//0 自动 1 WASM软解(canvas+audioAPI) 2 js封装FMP4(h264Demuxer+audioAPI) 3 WASM封装FMP4(WASM2FMP4) 4 服务器推fmp4流 5 webrtc 6 hls 7 webrtc(srs)
Expand Down Expand Up @@ -220,6 +244,8 @@ defaultConfig = {
protocol: 0,
//默认ctags
defaultCtags: null,
//录像起播缓存(ms)
playbackStartCache: 2000
//添加菜单
/*addMenu:[
{ title: "567", onClicked: function (index) { console.log("clicked 567-" + index) } },
Expand Down
2 changes: 1 addition & 1 deletion wx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

示例代码片段,请在微信开发工具中导入:

> https://developers.weixin.qq.com/s/1oRqF0ml7MBS
> https://developers.weixin.qq.com/s/aVgrkCmB7YH0
>
体验地址,对应服务器为 et.test.cvtsp.com:15001
Expand Down
Loading

0 comments on commit 87475c4

Please sign in to comment.