[Video] More tweaks to AVAudioSession options (#4910)
This commit is contained in:
parent
dd0d50a6f0
commit
5bfe5aa503
8 changed files with 74 additions and 10 deletions
|
|
@ -61,7 +61,7 @@ import {Provider as PortalProvider} from '#/components/Portal'
|
|||
import {Splash} from '#/Splash'
|
||||
import {Provider as TourProvider} from '#/tours'
|
||||
import {BackgroundNotificationPreferencesProvider} from '../modules/expo-background-notification-handler/src/BackgroundNotificationHandlerProvider'
|
||||
import {PlatformInfo} from '../modules/expo-bluesky-swiss-army'
|
||||
import {AudioCategory, PlatformInfo} from '../modules/expo-bluesky-swiss-army'
|
||||
|
||||
SplashScreen.preventAutoHideAsync()
|
||||
|
||||
|
|
@ -158,6 +158,7 @@ function App() {
|
|||
const [isReady, setReady] = useState(false)
|
||||
|
||||
React.useEffect(() => {
|
||||
PlatformInfo.setAudioCategory(AudioCategory.Ambient)
|
||||
PlatformInfo.setAudioMixWithOthers(true)
|
||||
initPersistedState().then(() => setReady(true))
|
||||
}, [])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue