Skip to content

Commit f03cb14

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents d9ef60c + 6fb89e7 commit f03cb14

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

README.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff 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
89116
A `TikTokLive` object contains the following methods.

0 commit comments

Comments
 (0)