-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HysteriaPlayer stops playing in background after some time #126
Comments
I don't have such issue. But one thing seems really weird. If this really happens, this might a issue on |
@saiday |
@sheff1422 |
Sample url looks like this.
Instance is created like this:
Playback toggle
Playback state setter
|
I am trying to add such thing to handle stall issue. But i am not sure that it will help
|
Unfortunately my workaround doesn't work.
|
@saiday Hey Saiday, Do you have any ideas how i can fix that issue? |
No, I don't have my computer till Nov. 7 I'll reply you soon sheff1422 [email protected] 於 2016年11月5日星期六 寫道:
|
@sheff1422
in step 3, you got
|
@saiday
Also i tried to test it with other mp3 streams and situation was the same. After some time (1-3 hours of playback) it stopped playing and application goes to sleep due to the fact that player is not playing anymore. |
Since I cannot reproduce, I can only provide you some clues. (If you can make a sample project contains your issue, it would be perfect) The weirdest part is that when you received AVPlayerItemPlaybackStalledNotification sent by
You can confirm "your buffer been filled or not" by set a breakpoint or add some logs on If you receive |
@saiday Would you be so kind to say what are you usually do when |
Hi, So Weird, I check my app in debug mode, It's status really "playing" after music end. |
Hi, |
@sheff1422 |
@savasadar This is really a big difference from "Specifically, the application plays silent audio to stay in the background." And one following question:
which status you mean? HysteriaPlayer or OS? |
@saiday Thanks for your reply. I will resubmit my app because I can't send message to reviewer from resolution center, message form is closed now.
I fixed it follows:
And I added my code this. Will this make a problem? |
@savasadar |
@saiday I am still trying to get it accepted.
Your app uses public APIs in an unapproved manner, which does not comply with section 3.3.1 of the Apple Developer Program License Agreement. Specifically, the app plays silent audio to stay in the background. Since there is no accurate way of predicting how an API may be modified and what effects those modifications may have, Apple does not permit unapproved uses of public APIs in App Store apps. Next Steps Please revise your app to ensure that documented APIs are used in the manner prescribed by Apple. If there are no alternatives for providing the functionality your app requires, we encourage you to file request enhancements to APIs and developer tools. Alternatively, you may wish to consult with Apple Developer Technical Support to explore alternative solutions. |
Hi,
I have noticed such issue - hysteriaplayer stopps playing in background after some time and doesn't continue.
I am working on radio application so playing only one url stream.
I have configured remote status logs each 20 seconds. When player stopped getPlayingItemCurrentTime was 5345.68 seconds and getPlayingItemDurationTime was 0.0, getHysteriaPlayerStatus = 0 (HysteriaPlayerStatusPlaying).
Seems that buffer become empty and AVplayer can't fill it due to some reason. After some time app was terminated due to the fact that playback is paused.
I am testing on a ipad 2 with ios 9.3.2 installed.
Before i have configured hysteria player i tried a lot of different approaches with AVPlayer but results were the same: After some time in background application stopped playing due to the fact that AVPlayer can't fill buffer.
Any ideas or workarounds regarding this issue?
The text was updated successfully, but these errors were encountered: