fix rebase more

This commit is contained in:
zeppi 2021-11-13 16:23:56 -05:00
parent 424308ef09
commit 57d51a4cdb
3 changed files with 1 additions and 9 deletions

View file

@ -26,7 +26,6 @@ import { selectShowMatureContent } from 'redux/selectors/settings';
import { makeSelectHasVisitedUri } from 'redux/selectors/content';
import { makeSelectIsSubscribed } from 'redux/selectors/subscriptions';
import { selectModerationBlockList } from 'redux/selectors/comments';
import { doFileGet } from 'redux/actions/file';
import ClaimPreview from './view';
import formatMediaDuration from 'util/formatMediaDuration';

View file

@ -136,6 +136,7 @@ function Page(props: Props) {
<StatusBar />
{/* @endif */}
</div>
<DownloadProgress />
</Fragment>
);
}

View file

@ -150,14 +150,6 @@ function VideoViewer(props: Props) {
bitrateAsBitsPerSecond = Math.round(contentInBits / durationInSeconds);
}
// convert bytes to bits, and then divide by seconds
const contentInBits = Number(claim.value.source.size) * 8;
const durationInSeconds = claim.value.video && claim.value.video.duration;
let bitrateAsBitsPerSecond;
if (durationInSeconds) {
bitrateAsBitsPerSecond = Math.round(contentInBits / durationInSeconds);
}
fetch(source, { method: 'HEAD', cache: 'no-store' }).then((response) => {
let playerPoweredBy = response.headers.get('x-powered-by') || '';
analytics.videoStartEvent(