TikTokLiveSharp
Read TikTok Live chat messages, gifts, etc.
Showcase
If you want to showcase a project you've made with this library, create an Issue with the Showcase label.
Details
A C# port of TikTok Live connector library (See here, here and here for more in-depth documentation). The primary incentive behind designing this library was to allow direct implementation of the TikTok Live connector into Unity, it's implemented in .NET Standard and should work universally across all .NET supported platforms. An older version of Protobuf-net was used to ensure Unity compatibility.
var client = new TikTokLiveClient(uniqueID);
client.OnCommentRecieved += Client_OnCommentRecieved;
client.Run();
private static void Client_OnCommentRecieved(object sender, WebcastChatMessage e)
{
Console.WriteLine($"{e.User.uniqueId}: {e.Comment}");
}
This is not an official library nor associated with TikTok in any way.
Setup
Unity
A Unity package can be downloaded from the releases.
Nuget
The latest release can be found in the Nuget Package Manager or by entering the command:
Install-Package TikTokLiveSharp
Or by navigating to the Nuget URL.