Skip to content

Commit

Permalink
Merge pull request #1980 from exadel-inc/fix/esl-media-brightcove-fix
Browse files Browse the repository at this point in the history
fix(esl-media): fix brightcove provider autoplay marker flow
  • Loading branch information
ala-n authored Oct 16, 2023
2 parents f00381a + 58793cd commit d698d70
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 d698d70

Please sign in to comment.