doublesymmetry / react-native-track-player

A fully fledged audio module created for music apps. Provides audio playback, external media controls, background mode and more!
https://rntp.dev/
Apache License 2.0
3.25k stars 1.01k forks source link

don't show SkipToNext button #2212

Closed 13627491210 closed 10 months ago

13627491210 commented 10 months ago

my code:

await TrackPlayer.updateOptions({ icon: ImgAsset.logo, alwaysPauseOnInterruption: false, progressUpdateEventInterval: 1, android: { appKilledPlaybackBehavior: AppKilledPlaybackBehavior.ContinuePlayback, alwaysPauseOnInterruption: false, }, capabilities: [ Capability.Play, Capability.Pause, Capability.SkipToPrevious, Capability.SkipToNext, Capability.SeekTo, ], compactCapabilities: [ Capability.Play, Capability.Pause, Capability.SkipToPrevious, Capability.SkipToNext, Capability.SeekTo, ], notificationCapabilities: [ Capability.Play, Capability.Pause, Capability.SkipToPrevious, Capability.SkipToNext, Capability.SeekTo, ], });

my phone is OnePlus ace2Pro, android 14 。 and Huawei have same problem。

53c357f66c08d87094d3e7a1b08e48bb

lovegaoshi commented 8 months ago

after an embarrassing amount of time looking at this too, for android < 13 if the mediaitem is the last item in the queue, skipToNext wont show.

ser-emejia commented 7 months ago

after an embarrassing amount of time looking at this too, for android < 13 if the mediaitem is the last item in the queue, skipToNext wont show.

Is this the default behavior?

In my case, I don't add all the tracks to the queue, I'm using the tp.load to play the track, because I get the audio url only when I choose a track.