From 80fd7d3ba877b506366209e0cbb95b917fb0e6da Mon Sep 17 00:00:00 2001 From: Raymond Jacobson Date: Tue, 14 May 2024 15:44:43 -0700 Subject: [PATCH] Fix android playback by setting default maxBuffer --- packages/mobile/src/app/App.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/mobile/src/app/App.tsx b/packages/mobile/src/app/App.tsx index 32cec5b5fb2..ce315d17355 100644 --- a/packages/mobile/src/app/App.tsx +++ b/packages/mobile/src/app/App.tsx @@ -66,6 +66,8 @@ const App = () => { 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,