Skip to content
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

Use AudioContext.outputLatency to sync video rendering with audio #505

Open
stephenwade opened this issue Mar 5, 2022 · 1 comment
Open

Comments

@stephenwade
Copy link
Owner

stephenwade commented Mar 5, 2022

Authors working on an application that need audio/video synchronization can use outputLatency to synchronize their rendering: instead of painting video frames as soon as they are rendered, they can shift the clock of the rendering by outputLatency, and audio and video will be in sync.

https://blog.paul.cx/post/audio-video-synchronization-with-the-web-audio-api/

On hold until Chrome implements AudioContext.outputLatency.

Chrome Platform Status: https://chromestatus.com/feature/5682265146261504
crbug: https://bugs.chromium.org/p/chromium/issues/detail?id=785409
MDN docs: https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/outputLatency

@stephenwade
Copy link
Owner Author

AudioContext.outputLatency shipped in Chrome 102.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant