Re: [mediacapture-fromelement] Different behavior when onaddtrack is fired for element.captureStream (#100)

I think you should probably look at the event. 
The code above is looking at the state of the stream. 

`stream.onaddtrack = (ev) => {
      console.log('onAddTrack kind: '+ev.track.kind );`

-- 
GitHub Notification of comment by steely-glint
Please view or discuss this issue at https://github.com/w3c/mediacapture-fromelement/issues/100#issuecomment-2156403801 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Sunday, 9 June 2024 09:07:20 UTC