isaackogan / TikTokLive

Python library to receive live stream events (comments, gifts, etc.) in realtime from TikTok LIVE.
https://isaackogan.github.io/TikTokLive/
MIT License
745 stars 154 forks source link

Detecting user exit from live #219

Closed rekvizitt closed 3 weeks ago

rekvizitt commented 3 weeks ago

Hey, I have a specific requirement where I need to track when users leave a live. I noticed that the library provides a method to capture when a user joins a stream, but I couldn't find a way to determine when they leave. Is there a recommended approach or workaround to achieve this functionality using the TikTokLive library? Ideally, I would like to be able to detect when a user is no longer present in the stream and perform certain actions based on that information. Any guidance or suggestions on how to implement this feature would be greatly appreciated. 🙏🏻

isaackogan commented 3 weeks ago

Not possible, TikTok do not provide that data

rekvizitt commented 3 weeks ago

Thank you, can you suggest if there is a way to get information about all current viewers?

isaackogan commented 3 weeks ago

As a general rule: If you can't see it on TikTok, you can't do it with this lib. We can't make up data.