Skip to content

Commit

Permalink
fix(SUP-24927): Audio playlist shows distorted poster image (#4207)
Browse files Browse the repository at this point in the history
Dont show the poster on the video tag for audio entry 

Solves SUP-24927
  • Loading branch information
yairans authored Feb 9, 2021
1 parent 87ea24e commit 0e6eebd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/EmbedPlayer/resources/mw.EmbedPlayerNative.js
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@
if (mw.getConfig('EmbedPlayer.HidePosterOnStart') === true) {
return;
}
if (this.getPlayerElement()) {
if (this.getPlayerElement() && !this.isAudio()) {
$(this.getPlayerElement()).attr('poster', src);
}
},
Expand Down
2 changes: 1 addition & 1 deletion modules/KalturaSupport/resources/mw.KWidgetSupport.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ mw.KWidgetSupport.prototype = {
thumbUrl = embedPlayer.evaluate(mw.getConfig('thumbnailUrl'));
}
var alt = gM('mwe-embedplayer-video-thumbnail-for', kWidget.sanitize(embedPlayer.evaluate('{mediaProxy.entry.name}')));
embedPlayer.updatePoster( thumbUrl, alt );
embedPlayer.isAudioPlayer = ( embedPlayer.kalturaPlayerMetaData.mediaType === 5 );
embedPlayer.updatePoster( thumbUrl, alt );
});

// Add black sources:
Expand Down

0 comments on commit 0e6eebd

Please sign in to comment.