HysteriaPlayer icon indicating copy to clipboard operation
HysteriaPlayer copied to clipboard

HysteriaPlayer paused state plays automatically after turning the screen on

Open arcioneo opened this issue 8 years ago • 9 comments

Hi guys, I'm using HysteriaPlayer in my app; First of all, thanks, is a nice product, feel glad to use it.

Still,there is one little intermittent problem:

  1. Play a song in my app
  2. Pause the song
  3. Turn off the screen(pushing the button hardware of course)
  4. Wait some time (about 20 min)
  5. Turn the screen on

Like some kind of sorcery, the song starts playing without pressing the play button.

I already checked my code(is not super complex) a lot of times and I'm pretty sure is not a bug in my app. BTW, is very hard to reproduce this error.

Any help would be appreciated.

Best regards.

arcioneo avatar May 06 '16 22:05 arcioneo

I have the same problem.

Thanks for the product :)

mkc842 avatar May 06 '16 23:05 mkc842

Oh, thank you for reporting the issue. I had never experienced. investigating it!

saiday avatar May 11 '16 07:05 saiday

I thought the same on first instance but we're not the only ones:

http://stackoverflow.com/questions/34797833/avqueueplayer-play-streaming-after-become-active-ipa-on-ipad-any-suggestion

arcioneo avatar May 11 '16 14:05 arcioneo

I have the same problem

4dmoonlight avatar May 12 '16 09:05 4dmoonlight

Me too! Having same issue. Thought it was my code, so sort of glad others reported this.

davros1970 avatar May 17 '16 03:05 davros1970

Sometimes it will call [self.delegate hysteriaPlayerReadyToPlay:HysteriaPlayerReadyToPlayCurrentItem], after turning the screen on.

So you can not call play in hysteriaPlayerReadyToPlay of delegate.

nathanwhy avatar Jun 02 '16 03:06 nathanwhy

Forgot to mention, if the device is in debug mode I cannot reproduce the error, only when is in normal mode

arcioneo avatar Jun 03 '16 05:06 arcioneo

any thoughts on this? im having the same problem...

fabricioeus avatar Nov 07 '16 18:11 fabricioeus

Yes, I found what I thought was an error.

Stop monitoring(using observers) changes to variables of this tool>

In my case that was the trigger thats starts playing sometimes when the device become active. This is an inappropriate use for a framework but many of us do that.

BTW, maybe an extra could be to make variables appropiately to avoid users (like me ;) ) perform a bad use of internal variables

arcioneo avatar Nov 07 '16 19:11 arcioneo