diff --git a/packages/mobile/src/app/App.tsx b/packages/mobile/src/app/App.tsx index ce315d17355..01a51b7812b 100644 --- a/packages/mobile/src/app/App.tsx +++ b/packages/mobile/src/app/App.tsx @@ -6,7 +6,7 @@ import { SafeAreaProvider, initialWindowMetrics } from 'react-native-safe-area-context' -import TrackPlayer, { IOSCategory } from 'react-native-track-player' +import TrackPlayer from 'react-native-track-player' import { Provider } from 'react-redux' import { useEffectOnce } from 'react-use' import { PersistGate } from 'redux-persist/integration/react' @@ -64,15 +64,7 @@ const App = () => { useEffectOnce(() => { setLibs(null) subscribeToNetworkStatusUpdates() - TrackPlayer.setupPlayer({ - minBuffer: 0.1, - // Default value (50), but required to be set on android (crashes otherwise) - maxBuffer: 50, - playBuffer: 0.1, - waitForBuffer: false, - autoHandleInterruptions: true, - iosCategory: IOSCategory.Playback - }) + TrackPlayer.setupPlayer({ autoHandleInterruptions: true }) }) useEnterForeground(() => { diff --git a/packages/mobile/src/components/audio/AudioPlayer.tsx b/packages/mobile/src/components/audio/AudioPlayer.tsx index c5191372fb9..17050f2dc03 100644 --- a/packages/mobile/src/components/audio/AudioPlayer.tsx +++ b/packages/mobile/src/components/audio/AudioPlayer.tsx @@ -39,8 +39,7 @@ import TrackPlayer, { State, useTrackPlayerEvents, RepeatMode as TrackPlayerRepeatMode, - TrackType, - PitchAlgorithm + TrackType } from 'react-native-track-player' import { useDispatch, useSelector } from 'react-redux' import { useAsync, usePrevious } from 'react-use' @@ -608,8 +607,6 @@ export const AudioPlayer = () => { return { url, type: TrackType.Default, - contentType: 'audio/mpeg', - pitchAlgorithm: PitchAlgorithm.Music, title: track.title, artist: trackOwner.name, genre: track.genre,