Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add factory method to get JS media stream as library MediaStream #94

Open
DFedonnikov opened this issue Sep 3, 2023 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@DFedonnikov
Copy link

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) }

@DFedonnikov DFedonnikov changed the title Add getUserMedia with JS media stream as parameter Add factory method to get JS media stream as libraries MediaStream Sep 3, 2023
@DFedonnikov DFedonnikov changed the title Add factory method to get JS media stream as libraries MediaStream Add factory method to get JS media stream as librarie's MediaStream Sep 3, 2023
@DFedonnikov DFedonnikov changed the title Add factory method to get JS media stream as librarie's MediaStream Add factory method to get JS media stream as library MediaStream Sep 3, 2023
@shepeliev shepeliev added the enhancement New feature or request label Sep 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants