const transformer = new TransformStream({
async transform(encodedFrame, controller) {
if (encodedFrame.type === "key") {
// Apply key frame transformation
} else {
// Apply delta frame transformation
}
controller.enqueue(encodedFrame);
},
});RTCEncodedVideoFrame: type property / notebook
RTCEncodedVideoFrame: type property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.