mirror of
https://github.com/jwdeveloper/TikTokLiveJava.git
synced 2026-02-28 01:09:40 -05:00
Compare commits
4 Commits
1.11.0-Rel
...
1.11.2-Rel
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b7977469a0 | ||
|
|
8910c6a491 | ||
|
|
57ff1f1385 | ||
|
|
aa1ef1f170 |
@@ -5,7 +5,7 @@
|
||||
<parent>
|
||||
<artifactId>TikTokLiveJava</artifactId>
|
||||
<groupId>io.github.jwdeveloper.tiktok</groupId>
|
||||
<version>1.10.10-Release</version>
|
||||
<version>1.11.1-Release</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>API</artifactId>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<parent>
|
||||
<artifactId>TikTokLiveJava</artifactId>
|
||||
<groupId>io.github.jwdeveloper.tiktok</groupId>
|
||||
<version>1.10.10-Release</version>
|
||||
<version>1.11.1-Release</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
|
||||
@@ -124,7 +124,6 @@ public class TikTokLiveClient implements LiveClient
|
||||
tikTokEventHandler.publish(this, new TikTokConnectingEvent());
|
||||
var userDataRequest = new LiveUserData.Request(roomInfo.getHostName());
|
||||
var userData = httpClient.fetchLiveUserData(userDataRequest);
|
||||
roomInfo.copy(userData.getRoomInfo());
|
||||
|
||||
if (userData.getUserStatus() == LiveUserData.UserStatus.Offline)
|
||||
throw new TikTokLiveOfflineHostException("User is offline: " + roomInfo.getHostName(), userData, null);
|
||||
@@ -132,6 +131,8 @@ public class TikTokLiveClient implements LiveClient
|
||||
if (userData.getUserStatus() == LiveUserData.UserStatus.NotFound)
|
||||
throw new TikTokLiveUnknownHostException("User not found: " + roomInfo.getHostName(), userData, null);
|
||||
|
||||
roomInfo.copy(userData.getRoomInfo());
|
||||
|
||||
var liveDataRequest = new LiveData.Request(userData.getRoomInfo().getRoomId());
|
||||
var liveData = httpClient.fetchLiveData(liveDataRequest);
|
||||
|
||||
|
||||
@@ -58,6 +58,7 @@ public class TikTokRoomInfo implements LiveRoomInfo
|
||||
|
||||
@Override
|
||||
public void copy(LiveRoomInfo roomInfo) {
|
||||
if (roomInfo == null) return;
|
||||
this.roomId = roomInfo.getRoomId();
|
||||
this.likesCount = roomInfo.getLikesCount();
|
||||
this.viewersCount = roomInfo.getViewersCount();
|
||||
@@ -69,6 +70,6 @@ public class TikTokRoomInfo implements LiveRoomInfo
|
||||
this.hostName = roomInfo.getHostName();
|
||||
this.title = roomInfo.getTitle();
|
||||
this.language = roomInfo.getLanguage();
|
||||
this.connectionState = roomInfo.getConnectionState();
|
||||
// this.connectionState = roomInfo.getConnectionState(); // This should not be copied - Controlled elsewhere!
|
||||
}
|
||||
}
|
||||
@@ -41,7 +41,7 @@
|
||||
<parent>
|
||||
<artifactId>TikTokLiveJava</artifactId>
|
||||
<groupId>io.github.jwdeveloper.tiktok</groupId>
|
||||
<version>1.10.10-Release</version>
|
||||
<version>1.11.1-Release</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<parent>
|
||||
<groupId>io.github.jwdeveloper.tiktok</groupId>
|
||||
<artifactId>TikTokLiveJava</artifactId>
|
||||
<version>1.10.10-Release</version>
|
||||
<version>1.11.1-Release</version>
|
||||
</parent>
|
||||
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<parent>
|
||||
<artifactId>TikTokLiveJava</artifactId>
|
||||
<groupId>io.github.jwdeveloper.tiktok</groupId>
|
||||
<version>1.10.10-Release</version>
|
||||
<version>1.11.1-Release</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>extension-recorder</artifactId>
|
||||
|
||||
2
pom.xml
2
pom.xml
@@ -7,7 +7,7 @@
|
||||
<groupId>io.github.jwdeveloper.tiktok</groupId>
|
||||
<artifactId>TikTokLiveJava</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
<version>1.10.10-Release</version>
|
||||
<version>1.11.1-Release</version>
|
||||
<modules>
|
||||
<module>API</module>
|
||||
<module>Client</module>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<parent>
|
||||
<artifactId>TikTokLiveJava</artifactId>
|
||||
<groupId>io.github.jwdeveloper.tiktok</groupId>
|
||||
<version>1.10.10-Release</version>
|
||||
<version>1.11.1-Release</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user