Skip to content

Releases

1.13.1-Release

Choose a tag to compare

@github-actions github-actions released this 10 Oct 01:40

Full Changelog: 1.13.0-Release...1.13.1-Release

1.13.0-Release

Choose a tag to compare

@github-actions github-actions released this 07 Oct 02:04

1.12.1-Release

Choose a tag to compare

@github-actions github-actions released this 01 Oct 03:00

1.12.0-Release

Choose a tag to compare

@github-actions github-actions released this 01 Oct 02:44

1.11.18-Release

Choose a tag to compare

@github-actions github-actions released this 10 Sep 02:08
Assume no fields are guaranteed.

1.11.17-Release

Choose a tag to compare

@github-actions github-actions released this 13 Aug 03:12
551ebee
fix(gift): stop streak gifts being dropped and double counted (#160)

Streak state was keyed on the user alone, so two concurrent streaks from the
same user overwrote each other. Finishing one streak then called clear() on the
whole map, wiping the state of every other user in the room.

A repeated finishing frame raised onGift a second time and the gift was counted
twice. TikTok resends the finishing frame of a streak under a fresh msgId,
sometimes within milliseconds, so the message id alone does not identify it.

A streak that never received a finishing frame never raised onGift at all, and
the gift was lost entirely.

- key streaks on user + gift + group instead of user alone
- remove only the finished streak rather than clearing the whole map
- ignore finishing frames repeated within 60s of a streak being closed
- close streaks left idle for 5 minutes using their last active frame
- mark the container-facing constructor @Inject

The idle window is measured from the last frame of a streak rather than its
start, so a long streak keeps extending it. It is deliberately generous:
closing a streak early would split the gift in two and the real finishing frame
would then be discarded as a duplicate.

The @Inject is not incidental. Driving the idle window from a test needs a
constructor that takes a clock, and the container picks its constructor by
reflection over the public ones: exactly one and it is used as is, more than one
and it demands the annotation. Adding the clock overload without it leaves the
class unregistrable, and since TikTokLiveClientBuilder registers this handler
unconditionally, every client would then die in build() before ever connecting.

Co-authored-by: lujunjie <[email protected]>

1.11.16-Release

Choose a tag to compare

@github-actions github-actions released this 07 Aug 02:00
Remove RecorderExample ffmpeg usage!

1.11.15-Release

Choose a tag to compare

@github-actions github-actions released this 31 Jul 16:46
23e2952
Refactor LiveDataMapper to simplify JSON parsing

1.11.14-Release

Choose a tag to compare

@github-actions github-actions released this 30 Jul 18:04
0917c11
Fix potential IndexOutOfBoundsException

java.lang.IndexOutOfBoundsException: Index 1 out of bounds for length 0
        at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:100)
        at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:106)
        at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:302)
        at java.base/java.util.Objects.checkIndex(Objects.java:365)
        at java.base/java.util.ArrayList.get(ArrayList.java:428)
        at com.google.gson.JsonArray.get(JsonArray.java:232)
        at io.github.jwdeveloper.tiktok.http.mappers.LiveDataMapper.getUser(LiveDataMapper.java:144)
        at io.github.jwdeveloper.tiktok.http.mappers.LiveDataMapper.map(LiveDataMapper.java:108)
        at io.github.jwdeveloper.tiktok.TikTokLiveHttpClient.getLiveData(TikTokLiveHttpClient.java:152)
        at io.github.jwdeveloper.tiktok.TikTokLiveHttpClient.fetchLiveData(TikTokLiveHttpClient.java:133)
        at io.github.jwdeveloper.tiktok.http.LiveHttpClient.fetchLiveData(LiveHttpClient.java:54)
        at java.base/java.util.concurrent.ThreadPerTaskExecutor$TaskRunner.run(ThreadPerTaskExecutor.java:291)
        at java.base/java.lang.VirtualThread.run(VirtualThread.java:460)

1.11.13-Release

Choose a tag to compare

@github-actions github-actions released this 20 Jul 22:46
Add nullability safety to Eulerstream WS mapping!