Your screen. Your subscription. Your ProMax. Start with a one-day trial ↗

Pro Max 4K OTT

Why a WebCodecs decoder needs a key chunk after configuration

WebCodecs requires a suitable key chunk when a video decoder starts a newly configured sequence, and its flush operation also restores the key-chunk requirement.

After a player update. Record the player name and new version if a change affects your setup. Pro Max 4K OTT, promax4k.tv.
After a player update. Record the player name and new version if a change affects your setup. Pro Max 4K OTT, promax4k.tv.

WebCodecs requires a suitable key chunk when a video decoder starts a newly configured sequence, and its flush operation also restores the key-chunk requirement. A player using this API must coordinate decoder lifecycle with the compressed stream's random-access points. A received segment is not automatically a valid starting point for a fresh decoder.

Follow a mid-sequence restart

Imagine a custom web player resets its decoding pipeline during a seek, then supplies a delta chunk whose picture depends on earlier compressed pictures. Those earlier references are unavailable in the new decoder context. Under the API's key-required condition, supplying a chunk identified as delta produces a DataError. This is an implementation-level startup issue; it does not describe an account activation step.

Use accurate chunk classification

EncodedVideoChunk identifies its type as key or delta. The specification allows implementations to inspect whether a purported key chunk really meets the codec's requirement. Relabeling arbitrary compressed data as key does not create the missing reference information. The application needs a genuine valid starting point, using the relevant codec registration and source packaging, before it can continue with dependent chunks.

Remember the flush boundary

Flush is an API operation that drains pending work, but the decoder rules also set the key-chunk-required flag. A developer should account for that when deciding where to resume input. Treating flush as a harmless operation between every dependent picture can conflict with the next chunk's type. The precise reproduction should include configure, decode and flush calls in order, together with the types of the chunks supplied.

Keep the viewer report simple

A viewer need not inspect bitstreams. Record whether the failure occurs on initial playback, a specific seek, or switching quality in the same application, and keep the exact displayed error. Developers can then compare the first submitted chunk with the decoder's lifecycle. This explanation applies to a player that actually uses WebCodecs; it does not establish that a named TV app uses the API or that every restart failure has the same cause.

Sources & further reading

From the ProMax collection

A different screen. The right starting point.

Smart televisions and computers use different app platforms. Begin with the model, system and player edition.

Pro Max home screen illustrating a setup discussion for a television or desktop display.
Smart televisions and computers use different app platforms. Begin with the model, system and player edition.

An evening worth making time for

Get the player ready.
We’ll help with the rest.

Install the player for your screen, then WhatsApp the ProMax team for a one-day free trial. Already watching? Open the help desk for your next step.

Ask ProMax↑