Skip to content

Commit

Permalink
fix(player): media session incorrectly seeks backward
Browse files Browse the repository at this point in the history
  • Loading branch information
Bennycopter authored Aug 7, 2024
1 parent 2cff379 commit c7cf7c8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class NavigatorMediaSession extends MediaPlayerController {
this.dispatch('media-seek-request', {
detail: isNumber(details.seekTime)
? details.seekTime
: this.$state.currentTime() + (details.seekOffset ?? 10),
: this.$state.currentTime() + (details.seekOffset ?? (details.action === "seekforward" ? 10 : -10)),
trigger,
});
break;
Expand Down

0 comments on commit c7cf7c8

Please sign in to comment.