From 721897c4ae5541e78c44673eb7bda8013a7f3231 Mon Sep 17 00:00:00 2001 From: Raymond Jacobson Date: Tue, 14 May 2024 15:58:04 -0700 Subject: [PATCH] Fix android playback by setting default maxBuffer (#8474) --- 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,