Skip to content

Commit

Permalink
fix(FEC-10281): chromecast does not work after playing it once and tr…
Browse files Browse the repository at this point in the history
…ying it on another video (#417)
  • Loading branch information
Dan Ziv authored Mar 14, 2021
1 parent 5324fae commit 42e7939
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 1 deletion.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion samples/ovp/cast.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
}
},
cast: {
receiverApplicationId: 'ED4BE7BD',
receiverApplicationId: 'B202D11C',
advertising: {
vast: false
}
Expand Down
5 changes: 5 additions & 0 deletions src/common/cast/remote-player-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ class RemotePlayerManager {
return false;
}

static destroy(): void {
const remotePlayers = RemotePlayerManager._remotePlayers;
Array.from(remotePlayers.values()).forEach(remotePlayer => remotePlayer.destroy());
}

static _getRemotePlayer(type?: string): ?Object {
const remotePlayers = RemotePlayerManager._remotePlayers;
if (type && remotePlayers.get(type)) {
Expand Down
1 change: 1 addition & 0 deletions src/kaltura-player.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ class KalturaPlayer extends FakeEventTarget {
this._localPlayer.destroy();
this._eventManager.destroy();
this._viewabilityManager.destroy();
RemotePlayerManager.destroy();
this._pluginsConfig = {};
const targetContainer = document.getElementById(targetId);
if (targetContainer && targetContainer.parentNode) {
Expand Down

0 comments on commit 42e7939

Please sign in to comment.