mention tv upload limit upfront

This commit is contained in:
jessop 2020-03-05 15:15:47 -05:00
parent 79c1f60f43
commit 942b2ee64b
2 changed files with 18 additions and 2 deletions

View file

@ -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"
}

View file

@ -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 (
<p className="help--error">
{__(UPLOAD_SIZE_MESSAGE)}{' '}
@ -107,7 +108,20 @@ function PublishFile(props: Props) {
</p>
);
}
// @if TARGET='web'
if (!isStillEditing) {
return (
<p className="help">
{__(
'For video content, use MP4s in H264/AAC format and a friendly bitrate (1080p) for more reliable streaming. Lbrytv uploads are restricted to 1GB.'
)}{' '}
<Button button="link" label={__('Publishing Guide')} href="https://lbry.com/faq/video-publishing-guide" />
</p>
);
}
// @endif
// @if TARGET='app'
if (!isStillEditing) {
return (
<p className="help">
@ -118,6 +132,7 @@ function PublishFile(props: Props) {
</p>
);
}
// @endif
}
function handleFileChange(file: WebFile) {