fix rebase more
This commit is contained in:
parent
424308ef09
commit
57d51a4cdb
3 changed files with 1 additions and 9 deletions
|
@ -26,7 +26,6 @@ import { selectShowMatureContent } from 'redux/selectors/settings';
|
||||||
import { makeSelectHasVisitedUri } from 'redux/selectors/content';
|
import { makeSelectHasVisitedUri } from 'redux/selectors/content';
|
||||||
import { makeSelectIsSubscribed } from 'redux/selectors/subscriptions';
|
import { makeSelectIsSubscribed } from 'redux/selectors/subscriptions';
|
||||||
import { selectModerationBlockList } from 'redux/selectors/comments';
|
import { selectModerationBlockList } from 'redux/selectors/comments';
|
||||||
import { doFileGet } from 'redux/actions/file';
|
|
||||||
import ClaimPreview from './view';
|
import ClaimPreview from './view';
|
||||||
import formatMediaDuration from 'util/formatMediaDuration';
|
import formatMediaDuration from 'util/formatMediaDuration';
|
||||||
|
|
||||||
|
|
|
@ -136,6 +136,7 @@ function Page(props: Props) {
|
||||||
<StatusBar />
|
<StatusBar />
|
||||||
{/* @endif */}
|
{/* @endif */}
|
||||||
</div>
|
</div>
|
||||||
|
<DownloadProgress />
|
||||||
</Fragment>
|
</Fragment>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -150,14 +150,6 @@ function VideoViewer(props: Props) {
|
||||||
bitrateAsBitsPerSecond = Math.round(contentInBits / durationInSeconds);
|
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) => {
|
fetch(source, { method: 'HEAD', cache: 'no-store' }).then((response) => {
|
||||||
let playerPoweredBy = response.headers.get('x-powered-by') || '';
|
let playerPoweredBy = response.headers.get('x-powered-by') || '';
|
||||||
analytics.videoStartEvent(
|
analytics.videoStartEvent(
|
||||||
|
|
Loading…
Reference in a new issue