Comments (1)
在主播端实现实时查看当前直播间具体有哪些人在线可以使用TIM的接口:https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#getGroupMemberList ,使用该接口时注意最多只能获取到直播群前300个在线观众的信息。
TUIPusher中在线观众的处理方式是,主播进房获取直播间的在线观众列表,之后有新的观众进入的时候监听用户进入的消息将新观众添加到在线观众列表中,有观众退出直播间的时候监听退群消息将观众从在线观众列表中移除。这种方式的弊端在于当用户直接关闭浏览器的时候无法执行退群操作,因此主播端无法得知观众已退出直播间。
这里提供更为可靠的方式供您参考,可参考文档 https://cloud.tencent.com/document/product/269/2570#web 配置TIM状态变更回调,在观众直接关闭浏览器的时候会收到状态变更回调并在后台调用 restful api 接口发送自定义消息 https://cloud.tencent.com/document/product/269/1629 通知主播有观众退出直播间。
from tuilivekit.
Related Issues (14)
- 看demo好像是支持美颜的,然而美颜功能并不能用 HOT 2
- 关于连麦方面的问题 HOT 3
- Android-9.1pk一直显示增在加载中 HOT 2
- Web版 TUIPlayer 移动端适配 HOT 2
- 主播端无法检测出我的摄像头、麦克风、和扬声器;点开始共享也没有反应
- 同时集成TUICalling TUILiveRoom冲突怎么解决
- iOS TRTC专业版 从9.4版本升级到最新之后 ,连麦观众关闭连麦的时候,主播端收不到onRemoteUserLeaveRoom这个方法的回调了?
- iOS TRTC专业版从9.4版本升级到最新之后 ,连麦观众关闭连麦的时候,主播端收不到onRemoteUserLeaveRoom这个方法的回调了?
- 主播端连麦时,不显示对方视频
- pod install error
- Issues Template
- 这个demo是不是不维护了
- 推流的时候如何关闭手势识别功能
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tuilivekit.