Small Changes to publishFile/view.jsx
This commit is contained in:
parent
4643eb96cc
commit
f6431ac235
1 changed files with 6 additions and 6 deletions
|
@ -49,7 +49,7 @@ function PublishFile(props: Props) {
|
||||||
const [oversized, setOversized] = useState(false);
|
const [oversized, setOversized] = useState(false);
|
||||||
const RECOMMENDED_BITRATE = 6000000;
|
const RECOMMENDED_BITRATE = 6000000;
|
||||||
const TV_PUBLISH_SIZE_LIMIT: number = 1073741824;
|
const TV_PUBLISH_SIZE_LIMIT: number = 1073741824;
|
||||||
const UPLOAD_SIZE_MESSAGE = 'Lbrytv uploads are limited to 1 GB. Download the app for unrestricted publishing.';
|
const UPLOAD_SIZE_MESSAGE = 'Lbry.tv uploads are limited to 1 GB. Download the app for unrestricted publishing.';
|
||||||
const PROCESSING_MB_PER_SECOND = 0.5;
|
const PROCESSING_MB_PER_SECOND = 0.5;
|
||||||
const MINUTES_THRESHOLD = 30;
|
const MINUTES_THRESHOLD = 30;
|
||||||
const HOURS_THRESHOLD = MINUTES_THRESHOLD * 60;
|
const HOURS_THRESHOLD = MINUTES_THRESHOLD * 60;
|
||||||
|
@ -125,7 +125,7 @@ function PublishFile(props: Props) {
|
||||||
if (isVid && duration && getBitrate(size, duration) > RECOMMENDED_BITRATE) {
|
if (isVid && duration && getBitrate(size, duration) > RECOMMENDED_BITRATE) {
|
||||||
return (
|
return (
|
||||||
<p className="help--warning">
|
<p className="help--warning">
|
||||||
{__('Your video has a bitrate over 5 mbps. We suggest transcoding to provide viewers the best experience.')}{' '}
|
{__('Your video has a bitrate over 5 Mbps. We suggest transcoding to provide viewers the best experience.')}{' '}
|
||||||
<Button button="link" label={__('Publishing Guide')} href="https://lbry.com/faq/video-publishing-guide" />
|
<Button button="link" label={__('Publishing Guide')} href="https://lbry.com/faq/video-publishing-guide" />
|
||||||
</p>
|
</p>
|
||||||
);
|
);
|
||||||
|
@ -135,7 +135,7 @@ function PublishFile(props: Props) {
|
||||||
return (
|
return (
|
||||||
<p className="help--warning">
|
<p className="help--warning">
|
||||||
{__(
|
{__(
|
||||||
'Your video may not be the best format. Use MP4s in H264/AAC format and a friendly bitrate (under 5 mbps) and resolution (720p) for more reliable streaming.'
|
'Your video may not be the best format. Use MP4s in H264/AAC format and a friendly bitrate (under 5 Mbps) and resolution (720p) for more reliable streaming.'
|
||||||
)}{' '}
|
)}{' '}
|
||||||
<Button button="link" label={__('Publishing Guide')} href="https://lbry.com/faq/video-publishing-guide" />
|
<Button button="link" label={__('Publishing Guide')} href="https://lbry.com/faq/video-publishing-guide" />
|
||||||
</p>
|
</p>
|
||||||
|
@ -154,7 +154,7 @@ function PublishFile(props: Props) {
|
||||||
return (
|
return (
|
||||||
<p className="help">
|
<p className="help">
|
||||||
{__(
|
{__(
|
||||||
'For video content, use MP4s in H264/AAC format and a friendly bitrate (under 5 mbps) and resolution (720p) for more reliable streaming. Lbrytv uploads are restricted to 1GB.'
|
'For video content, use MP4s in H264/AAC format and a friendly bitrate (under 5 Mbps) and resolution (720p) for more reliable streaming. Lbry.tv uploads are restricted to 1 GB.'
|
||||||
)}{' '}
|
)}{' '}
|
||||||
<Button button="link" label={__('Publishing Guide')} href="https://lbry.com/faq/video-publishing-guide" />
|
<Button button="link" label={__('Publishing Guide')} href="https://lbry.com/faq/video-publishing-guide" />
|
||||||
</p>
|
</p>
|
||||||
|
@ -167,7 +167,7 @@ function PublishFile(props: Props) {
|
||||||
return (
|
return (
|
||||||
<p className="help">
|
<p className="help">
|
||||||
{__(
|
{__(
|
||||||
'For video content, use MP4s in H264/AAC format and a friendly bitrate (under 5 mbps) and resolution (720p) for more reliable streaming.'
|
'For video content, use MP4s in H264/AAC format and a friendly bitrate (under 5 Mbps) and resolution (720p) for more reliable streaming.'
|
||||||
)}{' '}
|
)}{' '}
|
||||||
<Button button="link" label={__('Publishing Guide')} href="https://lbry.com/faq/video-publishing-guide" />
|
<Button button="link" label={__('Publishing Guide')} href="https://lbry.com/faq/video-publishing-guide" />
|
||||||
</p>
|
</p>
|
||||||
|
@ -293,7 +293,7 @@ function PublishFile(props: Props) {
|
||||||
units: getUnitsForMB(sizeInMB),
|
units: getUnitsForMB(sizeInMB),
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Transcoding this %size%MB file should take under %processTime% %units%.
|
Transcoding this %size% MB file should take under %processTime% %units%.
|
||||||
</I18nMessage>
|
</I18nMessage>
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
|
|
Loading…
Add table
Reference in a new issue