TikTok Live

Library

A simple library that allows you to develop experiences that integrate with TikTok Live

Minima updated 1y ago 0 MB engine 19
TikTok Live

TikTok Live

Simple library that allows you to subscribe to various TikTok Live events via a EulerStream web socket connection.
Have requests, questions, or concerns?

To Get Started:
  1. Add the TikTokLiveConnector component to your game
  2. Set the ttl_uri ConVar to a EulerStream WebSocket URI
    • It should roughly look like wss://ws.eulerstream.com?uniqueId=tv_asahi_news&apiKey=API_KEY_HERE
  3. Run the Game


Example Component:
using Minima.TikTokLive;

public class TikTokExample: Component, ITikTokLiveEvents {
	void ITikTokLiveEvents.OnChat( WebcastChatMessage msg ) {
		if ( msg.User is not {} user )
			return;
		
		Log.Info($"[{user.Nickname}]: {msg.Comment}"  );
	}
	
	void ITikTokLiveEvents.OnGift( WebcastGiftMessage msg ) {
		if ( msg.User is not {} user || msg.GiftDetails is not {} giftDetails )
			return;
	
		Log.Info($"[{user.Nickname}] sent a gift {giftDetails.GiftName} worth {giftDetails.DiamondCount} diamonds"  );
	}
	
	void ITikTokLiveEvents.OnLike( WebcastLikeMessage msg ) {
		if ( msg.User is not {} user )
			return;
		
		Log.Info($"[{user.Nickname}] liked the stream {msg.LikeCount} times." );
	}
	
	void ITikTokLiveEvents.OnSubNotify( WebcastSubNotifyMessage msg ) {
		if ( msg.User is not {} user )
			return;
		
		Log.Info($"[{user.Nickname}] subscribed to the stream." );
	}
	
	void ITikTokLiveEvents.OnSocialMessage( WebcastSocialMessage msg ) {
		if ( msg.User is not {} user )
			return;
		
		if ( msg.MessageKind == WebcastSocialMessage.Kind.Follow )
			Log.Info($"[{user.Nickname}] followed the stream." );
		else if ( msg.MessageKind == WebcastSocialMessage.Kind.Share )
			Log.Info($"[{user.Nickname}] shared the stream." );
	}
	
	void ITikTokLiveEvents.OnMemberMessage( WebcastMemberMessage msg ) {
		if ( msg.User is not {} user )
			return;
		
		if ( msg.MessageKind == WebcastMemberMessage.Kind.Join )
			Log.Info($"[{user.Nickname}] joined the stream." );
	}
}
No usage statistics available
This package may be new or not widely used yet. Usage data becomes available as more users install and play with the package.
0 recorded entries
Rank Player Score Recorded
refresh
Discovering package leaderboards...
Package ID: minima.tiktoklive
Created: 2025-05-24 23:52 UTC
Updated: 2025-05-25 20:18 UTC
Type: library
Public: Yes
Version: 103957
files: 22
Size: 0.0 MB
Engine Version: 19
Asset Version ID: 103957
Version Created: 2025-05-25 20:18 UTC
Hash: -1778612143725830067
Manifest: Open manifest

more_horiz Additional Properties

Compiler: {"RootNamespace":"Sandbox","DefineConstants":"SANDBOX;ADDON;DEBUG","NoWarn":"1701;1702;1591;","WarningsAsErrors":"","TreatWarningsAsErrors":false,"Nullables":false,"ReleaseMode":"Debug","AssemblyReferences":[],"IgnoreFolders":["editor","unittest"],"DistinctAssemblyReferences":[]}
new_releases Latest Update May 25, 2025
Changes on 2025-05-25
103957 May 25, 2025
Changes on 2025-05-25
103887 May 24, 2025
Initial Version
info Live API Passthrough & Removal Notice

This file manifest and asset metadata are retrieved live directly from the official Facepunch s&box public API. s&box Explorer does not host, store, or redistribute any package files. All download links route directly to Facepunch CDN servers.