Skip to content

Commit

Permalink
fix(FEV-1419): register to player ready event instead of plugin ready…
Browse files Browse the repository at this point in the history
… event (#293)
  • Loading branch information
amirch1 authored Sep 8, 2022
1 parent 8aa327d commit 74a1314
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qna-plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ export class QnaPlugin extends KalturaPlayer.core.BasePlugin {
this.eventManager.listen(this._player, this._player.Event.TIMED_METADATA_ADDED, this._onQnaSettings);
this.eventManager.listen(this._player, this._player.Event.FIRST_PLAYING, () => {
if (this._shouldExpandOnFirstPlay()) {
this.ready.then(() => {
this.player.ready().then(() => {
this.sidePanelsManager.activateItem(this._pluginPanel);
});
}
Expand Down

0 comments on commit 74a1314

Please sign in to comment.