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

Allow calling track.restart() on local tracks created using constructors #2045

Open
jpodwys opened this issue Mar 11, 2024 · 1 comment
Open

Comments

@jpodwys
Copy link

jpodwys commented Mar 11, 2024

Twilio employee Donal Toomey requested that I create this issue.

Today, calling const videoTrack = new LocalVideoTrack(mediaStreamTrack) results in being unable to call videoTrack.restart(). Today, we're bypassing this by passing the following into the constructor's options object.

// @ts-ignore
isCreatedByCreateLocalTracks: true,

We'd like to request one of the following two solutions

  1. Allow calling track.restart() on local tracks created via constructors (this is our preferred solution)
  2. Make isCreatedByCreateLocalTracks public (this is a reasonable fallback solution)
@jpodwys
Copy link
Author

jpodwys commented Jun 26, 2024

@donaltoomey is there any update here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant