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

Error when getting video track status on Firefox #839

Open
dragos-boisteanu opened this issue Dec 4, 2023 · 0 comments
Open

Error when getting video track status on Firefox #839

dragos-boisteanu opened this issue Dec 4, 2023 · 0 comments

Comments

@dragos-boisteanu
Copy link

When I use session.connection.getStats(videoTrack) I am receiving the following error:
DOMException: track must be associated with a unique sender or receiver, but is associated with 0 senders and 0 receivers.

This only happens on Firefox, on Edge, Chrome and Electron it works well

Here is how I use the method.

session.connection.ontrack = async function (event) {
      session.connection.ontrack = null

      const stream = event.streams[0]
      const videoTracks = stream.getVideoTracks()

      remoteAudio.srcObject = stream
      remoteAudio.play()

      const stats = await session.connection.getStats(videoTrack)
      ....
}

Thank you

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

No branches or pull requests

1 participant