twilio / twilio-video.js

Twilio’s Programmable Video JavaScript SDK
https://www.twilio.com/docs/video/javascript
Other
571 stars 217 forks source link

VideoTrack.detach() freezes on the last frame #791

Closed KaelWD closed 3 years ago

KaelWD commented 4 years ago

Code to reproduce the issue:

room.on('trackUnsubscribed', (track) => {
  if (track.kind === 'video') {
    track.detach()
  }
})

Expected behavior:

The video element should go blank

Actual behavior:

The video freezes on the last displayed frame

Calling videoElement.srcObject = null instead has the expected result EDIT: or track.detach().forEach(el => { el.srcObject = null })

Software versions:

makarandp0 commented 4 years ago

Hey @KaelWD, Thank you for writing about this issue - looks like you have already found a workaround, and are unblocked right?

But I will file go ahead and file a bug in our database to handle this from SDK side. (JSDK-2574) Thanks, Makarand JSDK Team

makarandp0 commented 3 years ago

Hey @KaelWD, I am closing this old issue. We are keeping the ticket tracking in our internal database open, but it is not very high priority. (VIDEO-3589).