-
Notifications
You must be signed in to change notification settings - Fork 58
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
Allow playing custom streams #94
Allow playing custom streams #94
Conversation
This lets users implement custom streams that can be played. For example, I have a websocket interface that I fetch data from. I can wrap that stream into a CoreAudioStreamSource and add that to the player.
Nice one, thanks. Could you write a simple custom CoreAudioStreamSource on the example project? Just to verify the behaviour. And I guess the same API can be used for the |
Thanks! Good call on the queue method. I'm trying to put together a simplified example and tests now. |
FYI, just fleshing out my use of this more in our app to see if there's anything I'd want to change. Also still plan on completing the queue methods. |
Took a bit to get to that, but using in my app now with this branch and all seems to be working well. |
AudioPlayer/AudioPlayer/Content/AudioPlayer/AudioPlayerControlsView.swift
Show resolved
Hide resolved
let me know if you want me to add anything else here. Trying to figure out a way to test better. |
Released on 1.2.6 |
Opening this up just to see if you are OK with the approach, I still have some refactoring to do and will add an example/test.
This lets users implement custom streams that can be played with AudioStreaming. For example, I have a websocket interface that I fetch data from. I can wrap that stream into a CoreAudioStreamSource and add that to the player. Another example would be decrypting data.