frankvHoof93 / TikTokLiveSharp

Port of TikTok live library for C#
https://vanhoof.dev
Other
139 stars 27 forks source link

how can connect tiktok with roomID?[QUESTION] #67

Open metalalchemist opened 3 months ago

metalalchemist commented 3 months ago

hello, how can connect this with roomid instead hostid?

                TikTokLiveClient client = new TikTokLiveClient("", "my_roomId", new ClientSettings()
                {
                    EnableCompression = false
                });
                client.OnConnected += Client_OnConnected;
                client.OnRoomUpdate += Client_OnRoomUpdate;
                client.OnLiveEnded += Client_OnLiveEnded;
                client.OnLike += Client_OnLike;
                client.OnJoin += Client_OnJoin;
                client.OnFollow += Client_OnFollow;
                client.OnChatMessage += Client_OnChatMessage;

but i receibed an error that says client don't exists. thanks

frankvHoof93 commented 2 months ago

Please provide more info on the error you're seeing. Connections should default to using RoomID if one is provided.

metalalchemist commented 2 months ago

but is good my params? in userID is empty and in roomid my roomid? can you create an example in examples code, please?

frankvHoof93 commented 2 months ago

Your params look okay, yes. UserId can either be NULL or string.Empty ("")