Skip to content

Commit

Permalink
Fix android playback by setting default maxBuffer (#8474)
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondjacobson committed May 14, 2024
1 parent 82d0b6c commit 721897c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/mobile/src/app/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 721897c

Please sign in to comment.