-
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
Unable to play a shoutcast stream #57
Comments
Hi thierryb, It is a bug related to AVPlayer. If you first initialize an AVPlayer with a local file, then you can not play any shoutcast stream. If you check HysteriaPlayer.m file, there is a method called playEmptySound. It initializes AVPlayer with a local file. If you change the method as below, then you can play any streaming content. But, at this time, you can not play any local media.
|
This is interesting, could you provide more shoutcast streams? Would like hamzaozturk [email protected] 於 2015年5月21日 星期四寫道:
|
You can find here: I have solved this problem as explained below: If there is a transition from streaming content to local file or vice versa, I initialize the AVPlayer object again with the selected choice(local or remote). |
It still can not play the mixture of streaming and file-based media. If you think it is the solution what changed on ios9, it does not support for ios7 and ios8. Ref: iOS 9 release note
|
Yes, I knew this AVQueuePlayer behaviour changed since iOS 9. Thanks for your wise counsel. Reopen this issue. |
There's a workaround if someone going to play HTTP Live Streaming, set |
Hi @saiday, I am facing the same issue. I am also unable to play mixture of local and streaming URLs. If I start playing with local urls, then it would play the local files, and then If I switch to stream URL, it would play it, but second time when I switch to local file Url, it would not play it. And then again if I roll back to stream URL, it wont play it either. This behaviour is permanent. Any help would be great. |
@tarzon like what @hamzaozturk mentioned
from iOS 9 release note: The best way to get rid of it is check audio resource type before player start playing, if you're going to play another type from previous resource, deprecate HysteriaPlayer by |
@saiday Thankyou. It worked. |
Hi,
I am unable to play a shoutcast stream like goovesalad from somaFM.
http://ice.somafm.com/groovesalad
AVPlayer ask only for 1 byte then connection is stopped.
Do you have an idea?
Thanks
The text was updated successfully, but these errors were encountered: