Re: [webrtc-encoded-transform] Expose flow control information to transform (#206)

> However you now have to require that transformer.generateKeyFrame() returns and resets isKeyFrameInflight before the first keyframe chunk is given to doTransform() otherwise you'll drop the keyframe.

Right!
And this is the current intent of the spec and WebKit implementation:

`By resolving the promises just before enqueuing the corresponding key frame in a [RTCRtpScriptTransformer](https://w3c.github.io/webrtc-encoded-transform/#rtcrtpscripttransformer)'s readable, the resolution callbacks of the promises are always executed just before the corresponding key frame is exposed.
`

The intent is also for generateKeyFrame to be a no-op if a previous generateKeyFrame call did not yet resolve (see `[[pendingKeyFrameTasks]]` management).

-- 
GitHub Notification of comment by youennf
Please view or discuss this issue at https://github.com/w3c/webrtc-encoded-transform/issues/206#issuecomment-1740770060 using your GitHub account


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

Received on Friday, 29 September 2023 11:56:32 UTC