agora.io - Agora 错误:流已关闭且无法初始化
问题描述
我们已经在我们的平台上集成了 Agora 进行视频通话,但是一些用户收到了这个错误“ stream is closed and cannot be initialized
”。在什么情况下会出现这个错误
解决方案
I think you haven't added the stream properly and may also be trying to close it at the same time.
Check if you have added the stream-added
callback after initialising the client and joining the channel.
// Connect New People
client.on('stream-added', function (evt) {
var stream = evt.stream;
client.subscribe(stream, function (err) {
});
});
Also check the documentation to ensure all steps are followed for the video call.
If it still doesn't work, check out this file in my sample app implementing the same.
推荐阅读
- swiftui - 将observedObject放入List
- vue.js - @blur 在 v-autocomplete vuetify
- excel - 在 Excel 中合并表格 - VBA
- django - django Like dislike 在帖子列表中不起作用。但它在帖子详细信息中起作用
- scala - 播放框架没有依赖注入?
- python - 在 Python 中优化函数
- mongodb - Mongodb 聚合意外数组结果 - 需要从 $lookup 返回对象而不是数组
- python - 我需要明确删除这个对象吗?
- excel - 使用隐藏单元格删除 VBA 中的值
- opencv - 如何将 OpenCV-contrib 的所有额外模块添加到 OpenCV 库?