From cc7c69eb25af83ed293a69b9ce52b69b64150a0f Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Fri, 27 Mar 2020 09:57:11 -0400 Subject: [PATCH] embed improvements --- ui/component/app/view.jsx | 4 ++-- ui/component/fileRender/view.jsx | 7 +++++-- ui/scss/component/_file-render.scss | 7 ++++++- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/ui/component/app/view.jsx b/ui/component/app/view.jsx index 17b0b8359..3562ba339 100644 --- a/ui/component/app/view.jsx +++ b/ui/component/app/view.jsx @@ -301,8 +301,8 @@ function App(props: Props) { {/* @if TARGET='web' */} - - {(lbryTvApiStatus === STATUS_DEGRADED || lbryTvApiStatus === STATUS_FAILING) && ( + {!shouldHideNag && } + {(lbryTvApiStatus === STATUS_DEGRADED || lbryTvApiStatus === STATUS_FAILING) && !shouldHideNag && ( setLbryTvApiStatus(STATUS_OK)} /> )} {lbryTvApiStatus === STATUS_OK && showAnalyticsNag && !shouldHideNag && ( diff --git a/ui/component/fileRender/view.jsx b/ui/component/fileRender/view.jsx index a3aab8fea..f9bf0ea7d 100644 --- a/ui/component/fileRender/view.jsx +++ b/ui/component/fileRender/view.jsx @@ -1,4 +1,5 @@ // @flow +import { URL } from 'config'; import { remote } from 'electron'; import React, { Suspense, Fragment } from 'react'; import classnames from 'classnames'; @@ -9,6 +10,7 @@ import AppViewer from 'component/viewers/appViewer'; import Button from 'component/button'; import { withRouter } from 'react-router-dom'; import AutoplayCountdown from 'component/autoplayCountdown'; +import { formatLbryUrlForWeb } from 'util/url'; // @if TARGET='web' import { generateStreamUrl } from 'util/lbrytv'; // @endif @@ -220,6 +222,7 @@ class FileRender extends React.PureComponent { render() { const { isText, uri, currentlyFloating, embedded } = this.props; const { showAutoplayCountdown, showEmbededMessage } = this.state; + const lbrytvLink = `${URL}${formatLbryUrlForWeb(uri)}?src=embed`; return (
{ > {embedded && showEmbededMessage && (
-
{__('View More on lbry.tv')}
+
{__('See more on lbry.tv')}
-
diff --git a/ui/scss/component/_file-render.scss b/ui/scss/component/_file-render.scss index 9cd61abb9..b24b51999 100644 --- a/ui/scss/component/_file-render.scss +++ b/ui/scss/component/_file-render.scss @@ -170,7 +170,6 @@ .vjs-big-play-button { @extend .button--icon; @extend .button--play; - display: block; background-color: rgba(0, 0, 0, 0.6); border: none; position: static; @@ -180,6 +179,12 @@ display: none; } } + + &.vjs-paused { + .vjs-big-play-button { + display: block; + } + } } .video-js:hover {