Closed Joshmatjjen closed 4 years ago
Fix it with this implementation
MusicControl.on('play', () => {
setState({ ...state, play: true });
setTimeout(() => setState((s) => ({ ...s, showControls: false })), 1500);
MusicControl.updatePlayback({
state: MusicControl.STATE_PLAYING,
});
});
MusicControl.on('pause', () => {
setState({ ...state, play: false, showControls: true });
MusicControl.updatePlayback({
state: MusicControl.STATE_PAUSED,
});
});
Description
Platform ?