Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to stream a video with flutter camera plugin?

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?

like image 798
dev_mush Avatar asked Jun 15 '18 09:06

dev_mush


People also ask

What are streams in flutter?

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.


1 Answers

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.

like image 135
alperen.emeksiz Avatar answered Oct 02 '22 16:10

alperen.emeksiz