diff --git a/dashboard-ui/scripts/mediaplayer-video.js b/dashboard-ui/scripts/mediaplayer-video.js index bdd4151c34..1404aed3da 100644 --- a/dashboard-ui/scripts/mediaplayer-video.js +++ b/dashboard-ui/scripts/mediaplayer-video.js @@ -1104,26 +1104,26 @@ // Get Video Poster (Code from librarybrowser.js) var screenWidth = Math.max(screen.height, screen.width), - posterUrl; + posterCode = ''; if (item.BackdropImageTags && item.BackdropImageTags.length) { - posterUrl = ApiClient.getScaledImageUrl(item.Id, { + posterCode = ' poster="' + ApiClient.getScaledImageUrl(item.Id, { type: "Backdrop", index: 0, maxWidth: screenWidth, tag: item.BackdropImageTags[0] - }); + }) + '"'; } else if (item.ParentBackdropItemId && item.ParentBackdropImageTags && item.ParentBackdropImageTags.length) { - posterUrl = ApiClient.getScaledImageUrl(item.ParentBackdropItemId, { + posterCode = ' poster="' + ApiClient.getScaledImageUrl(item.ParentBackdropItemId, { type: 'Backdrop', index: 0, maxWidth: screenWidth, tag: item.ParentBackdropImageTags[0] - }); + }) + '"'; } @@ -1136,11 +1136,11 @@ // Can't autoplay in these browsers so we need to use the full controls if (requiresNativeControls) { - html += '