-
Notifications
You must be signed in to change notification settings - Fork 218
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
Allow calling track.restart()
on local tracks created using constructors
#2045
Comments
@donaltoomey is there any update here? |
Hi @jpodwys, could you please elaborate on your use cases? We only support restarting local media tracks because we know how to reacquire them using getUserMedia(). For other tracks, we cannot determine how they were created. |
Hi, thank you for the response! We only call |
Thank you for the feedback. We will review your comments and get back to you. Out of curiosity, why do you prefer acquiring the track and calling the new LocalVideoTrack instead of using the |
Great question! Manually acquiring the track allows us to determine whether it's a PTZ-capable track prior to creating a LocalVideoTrack. This is important because the If we used |
Twilio employee Donal Toomey requested that I create this issue.
Today, calling
const videoTrack = new LocalVideoTrack(mediaStreamTrack)
results in being unable to callvideoTrack.restart()
. Today, we're bypassing this by passing the following into the constructor's options object.We'd like to request one of the following two solutions
track.restart()
on local tracks created via constructors (this is our preferred solution)isCreatedByCreateLocalTracks
public (this is a reasonable fallback solution)The text was updated successfully, but these errors were encountered: