You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HELP] Play raw Opus frames from websocket stream #24
Hey, thanks for the great library, I'm really pleased with it!
I would like to ask for help related to these questions:
I'm streaming from my server raw Opus frames, without OGG or CAF container. Since iOS uses CAF instead of the standard OGG container, I'm trying to play the raw frames, so maybe somehow both of them can play my stream. But if necessary I can encapsulate it in a container.
Is it possible to play raw Opus? Or somehow play CAF/Opus on Android maybe?
My app receives audio data periodically through the websocket. I would like to redirect this audio stream to the player so it can play it continously. Is it somehow possible?
The short answer is I don't know.
At this point I'm not looking to support additional codecs directly within the project.
The idea is that we will only support the codecs that android/ios support natively.
I've done some VERY preliminary work on a sister project 'sounds_codecs' which is intended to provide support for a additional codecs.
Uint8List buffer = ....
// Load a local audio file and get it as a buffer
Uint8List buffer = (await rootBundle.load('assets/samples/audio.mp3'))
.buffer
.asUint8List();
Activity
bsutton commentedon Aug 6, 2020
The short answer is I don't know.
At this point I'm not looking to support additional codecs directly within the project.
The idea is that we will only support the codecs that android/ios support natively.
I've done some VERY preliminary work on a sister project 'sounds_codecs' which is intended to provide support for a additional codecs.
Wyctus commentedon Aug 6, 2020
bsutton commentedon Aug 6, 2020
Wyctus commentedon Aug 6, 2020
Buffer support sounds great!
Could you please show me a basic example? I can't find it anywhere.
Thanks!
bsutton commentedon Aug 8, 2020
Its covered in the doco for Track.
Uint8List buffer = ....
// Load a local audio file and get it as a buffer
Uint8List buffer = (await rootBundle.load('assets/samples/audio.mp3'))
.buffer
.asUint8List();
Track.fromBuffer(buffer)
QuickPlay.fromTrack(track, volume: 1.0);
Wyctus commentedon Aug 8, 2020
Thank you!