react-native-audio-streaming icon indicating copy to clipboard operation
react-native-audio-streaming copied to clipboard

Stop in Notification, How to get Status in RN

Open hendraneo opened this issue 7 years ago • 3 comments

When user click Stop in Notification, Does it send an event to react native saying that status is Stop playing streaming song ?

hendraneo avatar Jun 17 '17 07:06 hendraneo

same issue here +1

cinder92 avatar Oct 09 '17 17:10 cinder92

+1

mkdotcom avatar Jan 24 '18 14:01 mkdotcom

You'll need to subscribe to AudioBridgeEvent event see more here

this.subscription = DeviceEventEmitter.addListener(
        'AudioBridgeEvent', (evt) => {
            if (evt.status === "STOPPED") {
                // Here finish logic
            }
        });

andrejkovacik avatar May 18 '18 20:05 andrejkovacik