Skip to content

Commit

Permalink
Update lib/media/gap_jumping_controller.js
Browse files Browse the repository at this point in the history
Co-authored-by: Álvaro Velad Galván <[email protected]>
  • Loading branch information
tykus160 and avelad authored May 29, 2024
1 parent b86b108 commit 5e7c484
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/media/gap_jumping_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@ shaka.media.GapJumpingController = class {
// Workaround for Xbox with Legacy Edge. On this platform video element
// often rounds value we want to set as currentTime and we are not able
// to jump over the gap.
if (shaka.util.Platform.isLegacyEdge()) {
if (shaka.util.Platform.isLegacyEdge() ||
shaka.util.Platform.isXboxOne()) {
jumpTo = Math.ceil((jumpTo + 0.01) * 100) / 100;
}
const seekEnd = this.timeline_.getSeekRangeEnd();
Expand Down

0 comments on commit 5e7c484

Please sign in to comment.