examples/video_stream/broadcaster/client/index.js
/**
 * Capture a frame and sends to encoder worker for processing
 * */
Capture a frame and sends to encoder worker for processing
Capture a frame and sends to encoder worker for processing
function Capture() {
    let imgData = getFrame();
    let timestamp = HighResolutionClock_Now();
    worker.postMessage({
        command : "encode",
        image : imgData,
        width : IMAGE_WIDTH,
        height: IMAGE_HEIGHT,
        ts : timestamp
    });
}
function Capture ( ) { let imgData = getFrame ( ) ; let timestamp = HighResolutionClock_Now ( ) ; worker . postMessage ( { command : "encode" , image : imgData , width : IMAGE_WIDTH , height : IMAGE_HEIGHT , ts : timestamp } ) ; }
Capture a frame and sends to encoder worker for processing
Capture a frame and sends to encoder worker for processing