-
Notifications
You must be signed in to change notification settings - Fork 27
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
What does sender.generateKeyFrame() do when sender.track is null, ended or disabled? #185
Comments
if the encoder has no input it can not produce a frame? Should I mention that awaiting generateKeyFrame is a flawed idea? |
The input would be black frames no? |
Only for muted/enabled=false track. This paragraph seems to induce that black frames are sent for ended tracks. My understanding matches @fippo's understanding, the promise will resolve when a key frame is generated, which may be very long if the track is not outputting any frame (canvas capture say). For a null track, we can do whatever we want, the current behaviour will wait for a frame, which can only happen if an actual track is set via replaceTrack. |
Thanks @youennf for correcting that |
Actually even ended is transient here if replaceTrack is used. |
Are we good there or do we need any clarification in the spec? |
Promise will not resolve and we can close this issue. |
Summary:
|
Note: in other contexts, we (Chrome) have found it necessary to generate a frame when a keyframe is asked for, even if we would normally not do so (for instance when capturing a tab that doesn't have any change). |
Is sender.generateKeyFrame() expected to work if we have a null send track?
Maybe yes since it says it "MUST send black frames (video)" and "SHOULD send one black frame per second"?
The text was updated successfully, but these errors were encountered: