Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

createCustomVideoTrack difficult to use #15

Open
keepersmith opened this issue Oct 16, 2021 · 3 comments
Open

createCustomVideoTrack difficult to use #15

keepersmith opened this issue Oct 16, 2021 · 3 comments

Comments

@keepersmith
Copy link

Since this needs to be called outside the functional component, and it requires a MediaStreamTrack to already be in place, it does not seem to offer any functionality outside of a hard-coded track.
Perhaps I am missing something, but there seems no way to pass it any sort of dynamically-created track.
Is there a way?

@EkaanshArora
Copy link
Contributor

Do you think creating a method on the returned hook to update the mediaTrack would help in your use case?

@keepersmith
Copy link
Author

Hi - yes, for sure.
Also, since this needs to be called outside the functional component, allow calling it without any mediaTrack (an empty config).
The use case is for a user to select a video file and then stream it - so it needs to be adjustable from within a functional component to be useful.

@EkaanshArora
Copy link
Contributor

That makes sense, let me put in some thought into the user-facing API and work on this in the next update. Might be some time as I'm working on a different project at the moment.

@EkaanshArora EkaanshArora added help wanted Extra attention is needed hacktoberfest hacktoberfest labels Oct 5, 2022
@EkaanshArora EkaanshArora removed help wanted Extra attention is needed hacktoberfest hacktoberfest labels Feb 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants