web api interface
EncodedVideoChunk
Available in workers
The EncodedVideoChunk interface of the WebCodecs API represents a chunk of encoded video data.
Constructor
EncodedVideoChunk()- : Creates a new
EncodedVideoChunkobject.
- : Creates a new
Instance properties
typeRead only- : Returns a string indicating whether this chunk of data is a key chunk.
timestampRead only- : Returns an integer representing the timestamp of the video in microseconds.
durationRead only- : Returns an integer representing the duration of the video in microseconds.
byteLengthRead only- : Returns an integer representing the length of the video in bytes.
Instance methods
copyTo()- : Copies the encoded video data.
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.