TikTokLiveSharp icon indicating copy to clipboard operation
TikTokLiveSharp copied to clipboard

[BUG] Fails to connect to some rooms!

Open JohnessyAI opened this issue 6 months ago • 1 comments

I have been working testing this out for the last 2 days and only just found this issue. When i use big names in the tiktok scene it connects without issue, But when i try to connect to lower tier streamers it will not find the room id. Even looking in the page source as others have suggested its just blank. Im at a loss for what this could even be. Maybe a platform trust style thing or something about how long they have streamed. I Genuinly have no idea

LiveNotFoundException: LiveStream for HostID could not be found. Is the Host online?
TikTokLiveSharp.Client.TikTokBaseClient.Connect (System.Action`1[T] onConnectException) (at Assets/TikTokLiveSharp/Client/TikTokBaseClient.cs:471)
TikTokLiveSharp.Client.TikTokLiveClient.Connect (System.Action`1[T] onConnectException) (at Assets/TikTokLiveSharp/Client/TikTokLiveClient.cs:334)

But then as i say, change the host id and it will work.

TikTokLiveManager.Instance.ConnectToStreamAsync(name, OnConnectionFailed);

This is what im currently using to connect

JohnessyAI avatar Jun 15 '25 19:06 JohnessyAI

Make sure you use public lives that not require login, I've managed make it to work with sessionId in order to connect to those lives

somunich avatar Sep 11 '25 23:09 somunich