From d61fcea76c27ce875a6ec619e42b96e22de1b575 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 15 Dec 2016 15:03:57 -0500 Subject: [PATCH] support timeshifting with safari mac and edge mobile --- .../emby-webcomponents/itemhelper.js | 2 +- dashboard-ui/css/librarybrowser.css | 12 ++++++++- dashboard-ui/itemdetails.html | 26 +++++++++++++++++- dashboard-ui/scripts/htmlmediarenderer.js | 27 ++++++------------- dashboard-ui/scripts/itemdetailpage.js | 4 +-- dashboard-ui/scripts/site.js | 4 +++ 6 files changed, 50 insertions(+), 25 deletions(-) diff --git a/dashboard-ui/bower_components/emby-webcomponents/itemhelper.js b/dashboard-ui/bower_components/emby-webcomponents/itemhelper.js index c077e6298c..50dd42f815 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/itemhelper.js +++ b/dashboard-ui/bower_components/emby-webcomponents/itemhelper.js @@ -13,7 +13,7 @@ define(['apphost'], function (appHost) { item = item.ProgramInfo || item; } - var name = (item.Type === 'Program' && item.IsSeries ? item.EpisodeTitle : item.Name) || ''; + var name = ((item.Type === 'Program' || item.Type === 'Recording') && item.IsSeries ? item.EpisodeTitle : item.Name) || ''; if (item.Type === "TvChannel") { diff --git a/dashboard-ui/css/librarybrowser.css b/dashboard-ui/css/librarybrowser.css index 59bd1d8e94..f53604ef88 100644 --- a/dashboard-ui/css/librarybrowser.css +++ b/dashboard-ui/css/librarybrowser.css @@ -380,6 +380,16 @@ span.itemCommunityRating:not(:empty) + .userDataIcons { display: flex; margin-bottom: 3.6em; } + + .shadedDetailSection, .detailPagePrimaryContainer { + background: rgba(0,0,0,.7); + padding: 1em; + box-shadow: 0 0 10px 1px black; + } + + .detailSection h1 { + opacity: .9; + } } @media all and (max-width: 1200px) { @@ -832,4 +842,4 @@ span.itemCommunityRating:not(:empty) + .userDataIcons { .mediaInfoText-upper { text-transform: uppercase; -} \ No newline at end of file +} diff --git a/dashboard-ui/itemdetails.html b/dashboard-ui/itemdetails.html index efb3d1e588..d920009e58 100644 --- a/dashboard-ui/itemdetails.html +++ b/dashboard-ui/itemdetails.html @@ -1,5 +1,29 @@ 
+ +
@@ -179,7 +203,7 @@
-
+

${HeaderMediaInfo}

diff --git a/dashboard-ui/scripts/htmlmediarenderer.js b/dashboard-ui/scripts/htmlmediarenderer.js index ac3e912af1..04dcefd39e 100644 --- a/dashboard-ui/scripts/htmlmediarenderer.js +++ b/dashboard-ui/scripts/htmlmediarenderer.js @@ -195,13 +195,8 @@ //return false; } - // For now don't do this in edge because we lose some native audio support - if (browser.edge && browser.mobile) { - return false; - } - // hls.js is only in beta. needs more testing. - if (browser.safari) { + if (browser.safari && !browser.osx) { return false; } @@ -225,17 +220,20 @@ // Safari often displays the poster under the video and it doesn't look good var poster = !browser.safari && options.poster ? (' poster="' + options.poster + '"') : ''; + // playsinline new for iOS 10 + // https://developer.apple.com/library/content/releasenotes/General/WhatsNewInSafari/Articles/Safari_10_0.html + // Can't autoplay in these browsers so we need to use the full controls if (requiresNativeControls && AppInfo.isNativeApp && browser.android) { - html += '