mirror of
https://github.com/jwdeveloper/TikTokLiveJava.git
synced 2026-02-27 08:49:40 -05:00
Fixed bugs:
- addListeners() was throwing exception - 404 response code was return while connecting to tiktok for some users - configure.setRoomId() method for people that want to set roomId manually - client.roomInfo().isAgeRestricted() check if live has age restriction
This commit is contained in:
@@ -56,7 +56,7 @@ public class ClientSettings {
|
||||
private boolean printMessageData;
|
||||
|
||||
/**
|
||||
* Tiktok user name
|
||||
* Optional: Use it if you need to change tiktok live hostname in builder
|
||||
*/
|
||||
private String hostName;
|
||||
|
||||
@@ -68,10 +68,16 @@ public class ClientSettings {
|
||||
|
||||
|
||||
/*
|
||||
* Optional: Sometimes not every messages from chat are send to TikTokLiveJava to fix this issue you can set sessionId
|
||||
* Optional: Sometimes not every messages from chat are send to TikTokLiveJava to fix this issue you can set sessionId
|
||||
* documentation how to obtain sessionId https://github.com/isaackogan/TikTok-Live-Connector#send-chat-messages
|
||||
*/
|
||||
private String sessionId;
|
||||
|
||||
/*
|
||||
* Optional: By default roomID is fetched before connect to live, but you can set it manually
|
||||
*
|
||||
*/
|
||||
private String roomId;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ package io.github.jwdeveloper.tiktok.live;
|
||||
public interface LiveRoomInfo
|
||||
{
|
||||
int getViewersCount();
|
||||
boolean isAgeRestricted();
|
||||
String getRoomId();
|
||||
String getUserName();
|
||||
ConnectionState getConnectionState();
|
||||
|
||||
@@ -6,4 +6,6 @@ import lombok.Data;
|
||||
public class LiveRoomMeta
|
||||
{
|
||||
private int status;
|
||||
|
||||
private boolean ageRestricted;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
package io.github.jwdeveloper.tiktok.mappers;
|
||||
|
||||
public interface Mapper<SOURCE,TARGET>
|
||||
{
|
||||
TARGET mapFrom(SOURCE source);
|
||||
}
|
||||
Reference in New Issue
Block a user