Skip to content

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

@jpodwys

Description

@jpodwys

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions