webrtc-kmp
webrtc-kmp copied to clipboard
Add factory method to get JS media stream as library MediaStream
Lately I've encountered use case when I needed to stream from a file. Actual class MediaStream have an internal constructor, so I wasn't able to create it with JS stream. Would it be possible to add some kind of factory method to JS implementation of MediaStream? For example:
MediaStream.fromSource(stream: org.w3c.dom.mediacapture.MediaStream): MediaStream { return MediaStream(stream) }