We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the Bug on iOS the Notification Center displays an empty track after the track has been TrackPlayer.reset()
TrackPlayer.reset()
Code To Reproduce
TrackPlayer.load(track);
setQueue
await TrackPlayer.play();
TrackPlayer.reset();
Environment Info: Running on a physical device with react-native-track-player: 0.72.5. Both XCode and Metro have no stacktrace
react-native-track-player: 0.72.5
The text was updated successfully, but these errors were encountered:
I too have the same issue,
After TrackPlayer.reset(), I am trying to play a video with react-native-video but still the notification control displays with empty data.
react-native-video
By updating the meta data, we can display data on it, but still I don't need that notification control in my app while playing video.
useEffect(() => { const updateMetaData = async () => { await TrackPlayer.updateNowPlayingMetadata({ title: media.title, description: media.description, artist: media.author, artwork: media.imageUrl, elapsedTime: currentTime, duration, }); }; updateMetaData(); }, [currentTime, media, duration]);
For events:
useTrackPlayerEvents( [ Event.RemotePause, Event.RemotePlay, Event.RemoteJumpForward, Event.RemoteJumpBackward, ], async event => { if (event.type === Event.RemotePause) { setPlay(false); } else if (event.type === Event.RemotePlay) { setPlay(true); } else if (event.type === Event.RemoteJumpBackward) { skipBackward(); } else if (event.type === Event.RemoteJumpForward) { skipForward(); } }, );
Pls share any alternative way for this issue
Version: react-native-track-player: ^4.1.1
react-native-track-player: ^4.1.1
Sorry, something went wrong.
No branches or pull requests
Describe the Bug
on iOS the Notification Center displays an empty track after the track has been
TrackPlayer.reset()
Code To Reproduce
TrackPlayer.load(track);
(same withsetQueue
)await TrackPlayer.play();
TrackPlayer.reset();
Environment Info:
Running on a physical device with
react-native-track-player: 0.72.5
. Both XCode and Metro have no stacktraceThe text was updated successfully, but these errors were encountered: