tlenclos / react-native-audio-streaming

iOS & Android react native module to play an audio stream, with background support and media controls
MIT License
783 stars 254 forks source link

Stop in Notification, How to get Status in RN #102

Open hendraneo opened 7 years ago

hendraneo commented 7 years ago

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

cinder92 commented 6 years ago

same issue here +1

mkdotcom commented 6 years ago

+1

andrejkovacik commented 6 years ago

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

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