Use new player icon for external video embeds (#5147)
parent
5dcb52015c
commit
0ef17a464d
|
@ -17,7 +17,6 @@ import {useSafeAreaInsets} from 'react-native-safe-area-context'
|
||||||
import {WebView} from 'react-native-webview'
|
import {WebView} from 'react-native-webview'
|
||||||
import {Image} from 'expo-image'
|
import {Image} from 'expo-image'
|
||||||
import {AppBskyEmbedExternal} from '@atproto/api'
|
import {AppBskyEmbedExternal} from '@atproto/api'
|
||||||
import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome'
|
|
||||||
import {msg} from '@lingui/macro'
|
import {msg} from '@lingui/macro'
|
||||||
import {useLingui} from '@lingui/react'
|
import {useLingui} from '@lingui/react'
|
||||||
import {useNavigation} from '@react-navigation/native'
|
import {useNavigation} from '@react-navigation/native'
|
||||||
|
@ -29,6 +28,7 @@ import {useExternalEmbedsPrefs} from '#/state/preferences'
|
||||||
import {atoms as a} from '#/alf'
|
import {atoms as a} from '#/alf'
|
||||||
import {useDialogControl} from '#/components/Dialog'
|
import {useDialogControl} from '#/components/Dialog'
|
||||||
import {EmbedConsentDialog} from '#/components/dialogs/EmbedConsent'
|
import {EmbedConsentDialog} from '#/components/dialogs/EmbedConsent'
|
||||||
|
import {PlayButtonIcon} from '#/components/video/PlayButtonIcon'
|
||||||
import {EventStopper} from '../EventStopper'
|
import {EventStopper} from '../EventStopper'
|
||||||
|
|
||||||
interface ShouldStartLoadRequest {
|
interface ShouldStartLoadRequest {
|
||||||
|
@ -59,7 +59,7 @@ function PlaceholderOverlay({
|
||||||
onPress={onPress}
|
onPress={onPress}
|
||||||
style={[styles.overlayContainer, styles.topRadius]}>
|
style={[styles.overlayContainer, styles.topRadius]}>
|
||||||
{!isPlayerActive ? (
|
{!isPlayerActive ? (
|
||||||
<FontAwesomeIcon icon="play" size={42} color="white" />
|
<PlayButtonIcon />
|
||||||
) : (
|
) : (
|
||||||
<ActivityIndicator size="large" color="white" />
|
<ActivityIndicator size="large" color="white" />
|
||||||
)}
|
)}
|
||||||
|
|
Loading…
Reference in New Issue