TikTok Live
A simple library that allows you to develop experiences that integrate with TikTok Live
hard_drive
0 MB
folder
22 files
build
Engine v19
history
Last update 458d ago
About This Package
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:
Have requests, questions, or concerns?
To Get Started:
- Add the TikTokLiveConnector component to your game
- Set the
ttl_uriConVar to a EulerStream WebSocket URI- It should roughly look like
wss://ws.eulerstream.com?uniqueId=tv_asahi_news&apiKey=API_KEY_HERE
- It should roughly look like
- 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.
This package may be new or not widely used yet. Usage data becomes available as more users install and play with the package.
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
Compiler:
Sandbox, SANDBOX;ADDON;DEBUG, 1701;1702;1591;, , , , Debug, Array, Array, Array
Resources:
Code Package References:
103957
May 25, 2025
Changes on 2025-05-25
103887
May 24, 2025
Initial Version