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

ReactNativeAudioStreaming.resume() restarts the song?

Open jasongrishkoff opened this issue 9 years ago • 8 comments

First I fire:

            ReactNativeAudioStreaming.play(url,{
                showIniOSMediaCenter: true,
                showInAndroidNotifications: true
            })

Then I hit fire ReactNativeAudioStreaming.pause(), which stops the track. After that, I fire ReactNativeAudioStreaming.resume() and the track restarts. I'm assuming that's not the expected behavior?

jasongrishkoff avatar Nov 11 '16 10:11 jasongrishkoff

Hi ! Can you provide more information about the platform and the song please ?

tlenclos avatar Nov 18 '16 15:11 tlenclos

It was with any .mp3 via network -- I can't provide additional detail, as I've already moved forward with a different library :(

jasongrishkoff avatar Nov 20 '16 16:11 jasongrishkoff

This is happening for me as well, with mp3s served from localhost (10.0.2.2) in the default Android emulator.

EDIT: nevermind, it's pretty obvious that this is what's supposed to happen due to current limitations.

micmarsh avatar Dec 12 '16 21:12 micmarsh

As @micmarsh pointed out, seems like 'pause' is the same as 'stop'.. Any workarounds?

skleest avatar Feb 07 '17 22:02 skleest

+1

dmtrKovalenko avatar Aug 26 '17 15:08 dmtrKovalenko

@jasongrishkoff can u please inform which library you are using for audio streaming

ashokkumar88 avatar Apr 07 '18 16:04 ashokkumar88

@ashokkumar88 Possible Candidate https://github.com/react-native-kit/react-native-track-player

moonstruck avatar Apr 07 '18 20:04 moonstruck

@moonstruck Thanks.

ashokkumar88 avatar Apr 08 '18 09:04 ashokkumar88