How to use custom video source for Flutter WebRTC

Viewed 398

I'm developing a Flutter app and need to send a custom video stream other than one from the camera through flutter_webrtc. Is there any way to achieve this goal? I took a look at flutter_webrtc's documentation, but it seems there's no interface to create MediaStreamTrack transmitting a custom video stream.

Thanks,

DK

1 Answers

We just forked the official library and we added a custom parser to create a MediaStreamTrack object from a custom video stream. You can use the function parseMediaStreamTrackpassing a track from a custom MediaStreamTrack object. Here you can find our forked repository

Related