Back to Content

VideoEncoder: encodeQueueSize property

files/en-us/web/api/videoencoder/encodequeuesize/index.md

latest517 B
Original Source

{{APIRef("WebCodecs API")}}{{SecureContext_Header}}{{AvailableInWorkers("window_and_dedicated")}}

The encodeQueueSize read-only property of the {{domxref("VideoEncoder")}} interface returns the number of pending encode requests in the queue.

Value

An integer containing the number of requests.

Examples

The following example prints the size of the queue to the console.

js
console.log(VideoEncoder.encodeQueueSize);

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}