Skip to content
This repository has been archived by the owner on Apr 7, 2023. It is now read-only.

sebheron/TikTokLiveSharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This version has been discontinued, migrate to the latest version from frankvHoof93

TikTokLiveSharp v0.1.4

Join the chat at https://gitter.im/TikTokLiveSharp/community HitCount Issues Forks Stars Tweet

Read TikTok Live chat messages, gifts, etc.

Issues

If you want to showcase a project you've made with this library, create an Issue with the Showcase label. Other than that issues are purely for bugs, if you're having an implementation issue, please send a message in the gitter conversation.

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. With Unity projects, replace usage of the TikTokLiveClient's Run method with Start to prevent blocking.

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.