
Security News
Feross on TBPN: Socket's Series C and the State of Software Supply Chain Security
Feross Aboukhadijeh joins TBPN to discuss Socket's $60M Series C, 500%+ ARR growth, AI's impact on open source, and the rise in supply chain attacks.
@hysc/external
Advanced tools

Signature = HexEncode(HMAC-SHA256((appId + ":" + userId + ":" + expireTime + ":" + nonce), appSecret))
BoomMeeting 是为了让Boom平台的第三方用户更加高效和快捷的接入Boom音视频能力的抽象出来 SDK 产品,第三方应用仅用有限几步,就可以获取Boom的全部音视频能力。
BoomMeeting为UMD打包方式,兼容了AMD common.js 等多种模块技术的引用
以下所有功能,皆可在index.html或者main.js中找到对应示例
step1:
step4登录的时候 需要用到 这些参数 { userId, nonce, expireTime, nickname, signature }
参考生成签名算法step2:
在自有工程index.html中引入对应的js
<script src="https://clientpkg.boom.cn/download/js-lib/BoomMeetingExternal.min.js"></script>
其中 BoomMeeing.js 为Boom平台的api入口文件 main.js为第三方业务处理文件(可根据项目情况自定义class或者js业务处理文件)
step3:
BoomMeetingExternal.setup({appId, baseURL, domain})
step4: 调用登录接口,传入业务端的用户id,用户昵称,nonce, expireTime, signature
BoomMeetingExternal.login({userId, nonce, expireTime, nickname, signature}).then((data)=>{
showToast('登录成功')
}).catch(error=>{
console.log(error)
})
step5: 监听事件
BoomMeetingExternal.on('participant-joined', (data) => {
console.log('------participant-joined listener-------', data);
var tarP = data.detail.participant;
showToast('有小伙伴加入房间:' + JSON.stringify(getNickName(tarP)));
});
BoomMeetingExternal.on('participant-left', (data) => {
console.log('------participant-left listener-------', data);
var tarP = data.detail.participant;
showToast('有小伙伴离开房间:' + JSON.stringify(getNickName(tarP)));
});
BoomMeetingExternal.on('room-error', (data) => {
console.log('------room-error listener-------', data);
var nickNames = [];
var tarError = data.detail.error;
console.log('加入房间失败' + JSON.stringify(tarError));
showToast('加入房间失败' + JSON.stringify(tarError));
});
BoomMeetingExternal.on('room-end', (data) => {
console.log('------room-end listener-------', data);
var nickNames = [];
console.log('结束了会议')
showToast('结束了会议');
});
step6: 加入房间(加入之前,需要先去后台创建)
BoomMeetingExternal.join({roomId: '424830', nickname:'nickname', mode:'live' | 'meeting' | 'audio'}).then((data)=>{
showToast('加入成功')
}).catch(error=>{
console.log(error)
})
step7: 离开房间
BoomMeetingExternal.leave().then((data)=>{
showToast('离开成功')
}).catch(error=>{
console.log(error)
})
Boom js SDK
npn install
tsc
npm run build
npm run jsdoc:generate
cd sample; npm run start
FAQs
Boom external js sdk
We found that @hysc/external demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Feross Aboukhadijeh joins TBPN to discuss Socket's $60M Series C, 500%+ ARR growth, AI's impact on open source, and the rise in supply chain attacks.

Security News
OSV withdrew 157 OSV malware reports after automated false positives incorrectly flagged trusted npm and PyPI packages, sending bad records into tools that rely on OSV data.

Research
/Security News
TrapDoor crypto stealer hits 36 malicious packages across npm, PyPI, and Crates.io, targeting crypto, DeFi, AI, and security developers.