File tree Expand file tree Collapse file tree 1 file changed +28
-1
lines changed Expand file tree Collapse file tree 1 file changed +28
-1
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ Do you prefer other programming languages?
6262 public static void main(String [] args)
6363 {
6464 // Username of someone who is currently live
65- var tiktokUsername = " officialgeilegisela " ;
65+ var tiktokUsername = " jwdevtiktok " ;
6666
6767 TikTokLive . newClient(tiktokUsername)
6868 .onConnected(event - >
@@ -84,6 +84,33 @@ Do you prefer other programming languages?
8484 .buildAndRun();
8585 }
8686```
87+ ## Configuration
88+
89+ ``` java
90+ public class ConfigurationExample
91+ {
92+ public static void main (String [] args ) throws IOException {
93+
94+ TikTokLive . newClient(" jwdevtiktok" )
95+ .configure(clientSettings - >
96+ {
97+ clientSettings. setHostName(" jwdevtiktok" ); // tiktok user
98+ clientSettings. setClientLanguage(" en" ); // language
99+ clientSettings. setTimeout(Duration . ofSeconds(2 )); // connection timeout
100+ clientSettings. setLogLevel(Level . ALL ); // log level
101+ clientSettings. setDownloadGiftInfo(true ); // TODO
102+ clientSettings. setCheckForUnparsedData(true ); // TODO
103+ clientSettings. setPollingInterval(Duration . ofSeconds(1 )); // TODO
104+ clientSettings. setPrintMessageData(true ); // TODO
105+ clientSettings. setPrintToConsole(true ); // TODO
106+ clientSettings. setHandleExistingMessagesOnConnect(true ); // TODO
107+ clientSettings. setRetryOnConnectionFailure(true ); // TODO
108+ })
109+ .buildAndRun();
110+ }
111+ }
112+
113+ ```
87114
88115## Methods
89116A ` TikTokLive ` object contains the following methods.
You can’t perform that action at this time.
0 commit comments