Skip to content

Commit

Permalink
fix:accept CurrentPlayheadPosition with 0 value
Browse files Browse the repository at this point in the history
  • Loading branch information
mmustafa-tse committed Sep 5, 2024
1 parent 80550ac commit c280473
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ export class MediaSession {
options: Options = {},
): MediaEvent {
// Set event option based on options or current state
this.currentPlayheadPosition = options?.currentPlayheadPosition;
if (options?.currentPlayheadPosition !== undefined) {
this.currentPlayheadPosition = options?.currentPlayheadPosition;
}

// Merge Session Attributes with any other optional Event Attributes.
// Event-Level Custom Attributes will override Session Custom Attributes if there is a collison.
Expand Down

0 comments on commit c280473

Please sign in to comment.