Skip to content

Commit

Permalink
fix(FEC-11041): player fails in IE11 (#419)
Browse files Browse the repository at this point in the history
  • Loading branch information
OrenMe committed Feb 28, 2021
1 parent deb53c0 commit 52f9bc1
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions src/kaltura-player.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ class KalturaPlayer extends FakeEventTarget {
_appPluginConfig: KPPluginsConfigObject = {};
_viewabilityManager: ViewabilityManager;
_playbackStart: boolean;
_thumbnailManager: ?ThumbnailManager = null;

/**
* Whether the player browser tab is active and in the scroll view
Expand Down Expand Up @@ -471,16 +472,16 @@ class KalturaPlayer extends FakeEventTarget {
}

getThumbnail(time?: number): ?ThumbnailInfo {
if (this._thumbnailManager) {
if (!time) {
// If time isn't supplied, return thumbnail for player's current time
if (!isNaN(this.currentTime)) {
time = this.currentTime;
} else {
return null;
}
if (!time) {
// If time isn't supplied, return thumbnail for player's current time
if (!isNaN(this.currentTime)) {
time = this.currentTime;
} else {
return null;
}
time = this.isLive() ? time + this.getStartTimeOfDvrWindow() : time;
}
time = this.isLive() ? time + this.getStartTimeOfDvrWindow() : time;
if (this._thumbnailManager) {
return this._thumbnailManager.getThumbnail(time);
}
}
Expand Down

0 comments on commit 52f9bc1

Please sign in to comment.