Fix quality selector

This commit is contained in:
Thomas Zarebczan 2022-05-12 11:48:21 -04:00
parent b2763e4bf0
commit ac0ec4794a
No known key found for this signature in database
GPG key ID: 767B41E1BB7346F2

View file

@ -180,9 +180,7 @@ export default React.memo<Props>(function VideoJs(props: Props) {
const { url: livestreamVideoUrl } = activeLivestreamForChannel || {}; const { url: livestreamVideoUrl } = activeLivestreamForChannel || {};
const overrideNativeVhs = !platform.isIPhone(); const overrideNativeVhs = !platform.isIPhone();
const showQualitySelector = const showQualitySelector = (!isLivestreamClaim && overrideNativeVhs) || livestreamVideoUrl;
(!isLivestreamClaim && overrideNativeVhs) ||
(livestreamVideoUrl && (livestreamVideoUrl.includes('/transcode/') || livestreamVideoUrl.includes('cloud.odysee')));
// initiate keyboard shortcuts // initiate keyboard shortcuts
const { curried_function } = keyboardShorcuts({ const { curried_function } = keyboardShorcuts({