Skip to content

Add support for "raw" container #763

@kixelated

Description

@kixelated

Currently, we VarInt encode the PTS in the simple hang container. This is quite overkill and makes it slightly more difficult to build, as media layers need to implement QUIC VarInts now for a single value.

This is actually a good test for a new container enum we should add to the catalog. We should create a container: "raw" that uses a u64 while container: "legacy" uses a varint. In the (near) future we would add fmp4 and eventually loc.

The first step would be to add decode support for a new container field. If the field is detected, we change this line to read 8 bytes instead of a varint number of bytes. Same on the Rust side although that is less immediately important (used by gstreamer).

The implementation should be generic enough that we can add multiple containers in the future.

Metadata

Metadata

Assignees

Labels

good first issueGood for newcomersjavascriptPull requests that update Javascript coderustPull requests that update Rust code

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions