Re: [webrtc-pc] CaptureStream adds mediaTracks with delay, we need a callback? (#923)

This is because you are capturing stream before video is played. So you need to capture stream after video has started playing to avoid delay in stream tracks.

**A better way instead of setInterval is to use:**
1- Use await on video.play() method and capture stream after that.
2- Use 'onplay' event of video element to capture stream when video is played.

-- 
GitHub Notification of comment by zaidiqbalsoftech
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/923#issuecomment-1155062107 using your GitHub account


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

Received on Tuesday, 14 June 2022 11:31:45 UTC