I've been playing around with the camera plugin, I know there's the possibility to capture a video via the CameraController
with the functions start/stopVideoRecording
, the functions will take a path for a file as an input.
I'd like to be able to stream this video to a server while it's being recorded, is it possible somehow with the current capabilities of the camera plugin?
Streams provide an asynchronous sequence of data. Data sequences include user-generated events and data read from files. You can process a stream using either await for or listen() from the Stream API. Streams provide a way to respond to errors. There are two kinds of streams: single subscription or broadcast.
You can call Java/Kotlin or Objective-C/Swift libraries from Dart.
I can suggest that libraries for Android,
https://github.com/begeekmyfriend/yasea
https://github.com/ant-media/LiveVideoBroadcaster
The only thing that you have to do is developing a dart interface to this kind of libraries.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With