Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge PlaybackInfoProvider and PlayerHelper into PlayerDecorator #79

Merged
merged 6 commits into from
Aug 27, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix some code style issues
stonko1994 committed Aug 24, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit efc76ad2fa2f1feb44e0a1ca35a684b85e6514da
Original file line number Diff line number Diff line change
@@ -94,7 +94,6 @@ public long getPlayHeadTimeMillis() {
double playerTimeShift = player.getTimeShift();
long playerDurationMs = -(Math.round(playerTimeShiftMax * 1000));
return playerDurationMs - -(Math.round(playerTimeShift * 1000));

} else {
double currentTime = player.getCurrentTime();
return (long) (currentTime * 1000);
Original file line number Diff line number Diff line change
@@ -5,4 +5,4 @@

public interface WithEventEmitter {
void call(JavaEventEmitter<Event> player);
}
}
Original file line number Diff line number Diff line change
@@ -53,8 +53,8 @@ class DefaultSsaiApiTest {
}

ssaiApi = DefaultSsaiApi(
videoAnalytics,
adAnalytics,
videoAnalytics,
adAnalytics,
playerAdapter,
)
}