WebRTC samples Integrations with WebGPU for custom video rendering

This sample shows how to render multiple video streams to canvas using the insertable streams and WebGPU APIs. There are options to either process the rendering on the main thread or on a worker thread.


Choose type of rendering:
Input:
Output:

Note: This sample is using WebGPU API that is in Origin Trial as of 2021-09-21 and is available in Chrome M94 if the experimental code is enabled on the command line with --enable-unsafe-webgpu.

View source on GitHub