Skip to content
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

Streaming Radio ? #12

Open
xcourier opened this issue Aug 19, 2019 · 3 comments
Open

Streaming Radio ? #12

xcourier opened this issue Aug 19, 2019 · 3 comments

Comments

@xcourier
Copy link

Trying to use this framework to stream internet radio. I am able to get some radio stations that stream in .mp3 formats to play, but only for a short period of time . Most stations stream for 30 seconds or so and then go 'silent'. The App does not crash, and there are no errors in the console .. it just seems to go ....silent for lack of a better description ?

The app continues to run and packets seem to still be processed..but no audio ?

The console logs as below, but no audio is heard . ..

2019-08-19 19:26:37.360708-0400 TimePitchStreamer[14105:1198796] [Parser.Packets] ParserPacketCallback(_:_:_:_:_:) - 17 [bytes: 1254, packets: 6, compressed: true]

@xcourier
Copy link
Author

To be more precise, when streaming live radio replace

let url = URL(string: "https://cdn.fastlearner.media/bensound-rumble.mp3")!

in ViewController.swift with :

let url = URL(string: "http://radionz-ice.streamguys.com/national.mp3")!

The engine reaches an end of file state after a few seconds of playback

2019-08-20 14:43:28.345860-0400 TimePitchStreamer[22259:1547343] [AudioUnitViewController] streamer(_:changedState:) - 37 [playing]
2019-08-20 14:43:42.275479-0400 TimePitchStreamer[22259:1547343] [Streamer] Scheduler reached end of file

Just wondering if this is fixable ? Thanks for this cool project!

@dylancom
Copy link

dylancom commented Jul 22, 2020

I'm experiencing the same problem, the radio goes silent after a approximate 30 seconds.

@EricWVGG
Copy link

I also ran into the same issue… I believe this is intended more as a tutorial/basic package thing (which I learned a lot from!) than a production framework.

https://github.com/fethica/FRadioPlayer looks more like a production-ready "clone it and build your UI" framework, and definitely works with shoutcast/icecast/etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants