
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to 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
The npm package @hysc/external receives a total of 7 weekly downloads. As such, @hysc/external popularity was classified as not popular.
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 3 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
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.