From 942b2ee64b208f0d3bcea3a6c52a1c740583bebc Mon Sep 17 00:00:00 2001 From: jessop Date: Thu, 5 Mar 2020 15:15:47 -0500 Subject: [PATCH] mention tv upload limit upfront --- static/app-strings.json | 3 ++- ui/component/publishFile/view.jsx | 17 ++++++++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/static/app-strings.json b/static/app-strings.json index 9024a68f9..ef663f169 100644 --- a/static/app-strings.json +++ b/static/app-strings.json @@ -1012,5 +1012,6 @@ "Unable to validate your video.": "Unable to validate your video.", "Checking your video...": "Checking your video...", "Your video has a bitrate over 8 mbps. We suggest transcoding to provide viewers the best experience.": "Your video has a bitrate over 8 mbps. We suggest transcoding to provide viewers the best experience.", - "Your video may not be the best format. Use MP4s in H264/AAC format and a friendly bitrate (1080p) for more reliable streaming.": "Your video may not be the best format. Use MP4s in H264/AAC format and a friendly bitrate (1080p) for more reliable streaming." + "Your video may not be the best format. Use MP4s in H264/AAC format and a friendly bitrate (1080p) for more reliable streaming.": "Your video may not be the best format. Use MP4s in H264/AAC format and a friendly bitrate (1080p) for more reliable streaming.", + "Publishing Guide": "Publishing Guide" } \ No newline at end of file diff --git a/ui/component/publishFile/view.jsx b/ui/component/publishFile/view.jsx index df8878cc3..4f9bde212 100644 --- a/ui/component/publishFile/view.jsx +++ b/ui/component/publishFile/view.jsx @@ -47,6 +47,7 @@ function PublishFile(props: Props) { setDuration(0); setSize(0); setIsVid(false); + setOversized(false); } }, [filePath]); @@ -71,7 +72,7 @@ function PublishFile(props: Props) { function getMessage() { // @if TARGET='web' - if (oversized || Number(size) > TV_PUBLISH_SIZE_LIMIT) { + if (oversized) { return (

{__(UPLOAD_SIZE_MESSAGE)}{' '} @@ -107,7 +108,20 @@ function PublishFile(props: Props) {

); } + // @if TARGET='web' + if (!isStillEditing) { + return ( +

+ {__( + 'For video content, use MP4s in H264/AAC format and a friendly bitrate (1080p) for more reliable streaming. Lbrytv uploads are restricted to 1GB.' + )}{' '} +