EncodedVideoChunk

فهرست فصل‌ها دانلود آرشیوناشر

MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونه‌کد

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

The **EncodedVideoChunk** interface of the {{domxref('WebCodecs API','','',' ')}} represents a chunk of encoded video data.

Constructor

  • {{domxref("EncodedVideoChunk.EncodedVideoChunk", "EncodedVideoChunk()")}}
  • : Creates a new EncodedVideoChunk object.

Instance properties

  • {{domxref("EncodedVideoChunk.type")}} {{ReadOnlyInline}}
  • : Returns a string indicating whether this chunk of data is a key chunk.
  • {{domxref("EncodedVideoChunk.timestamp")}} {{ReadOnlyInline}}
  • : Returns an integer representing the timestamp of the video in microseconds.
  • {{domxref("EncodedVideoChunk.duration")}} {{ReadOnlyInline}}
  • : Returns an integer representing the duration of the video in microseconds.
  • {{domxref("EncodedVideoChunk.byteLength")}} {{ReadOnlyInline}}
  • : Returns an integer representing the length of the video in bytes.

Instance methods

  • {{domxref("EncodedVideoChunk.copyTo()")}}
  • : Copies the encoded video data.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}