From 8599b4a5b39e7d7073cd6db813f29366aa30f817 Mon Sep 17 00:00:00 2001 From: "T. Adams" Date: Thu, 26 Mar 2015 01:06:34 -0700 Subject: [PATCH] Don't add empty poster attribute --- dashboard-ui/scripts/mediaplayer-video.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) 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 += '