Skip to content

Commit

Permalink
fix(esl-media): fix brightcove provider autoplay marker flow
Browse files Browse the repository at this point in the history
Closes: #1979

Co-authored-by: Anna Barmina <[email protected]>
  • Loading branch information
ala-n and abarmina committed Oct 12, 2023
1 parent bfbe1f8 commit 58793cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/esl-media/providers/brightcove-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ export class BrightcoveProvider extends BaseProvider {
}

public stop(): void {
this._api.autoplay(false);
this._api.currentTime(0);
this._api.pause();
}
Expand All @@ -177,7 +178,7 @@ export class BrightcoveProvider extends BaseProvider {
return super.safePlay();
}
public override safeStop(): Promise<any> {
this._autoplay = true;
this._autoplay = false;
return super.safeStop();
}
}
Expand Down

0 comments on commit 58793cd

Please sign in to comment.