Skip to content

Docs don't match implementation #30

Description

@stevendesu

Per the README file:

  • value is the value of the data in the element, represented as a number or a string. Integers stored in 6 bytes or less are represented as numbers, and longer integers are represented as hexadecimal text strings.

As well:

Elements with the Block and SimpleBlock types get special treatment. They have these additional members:

  • payload is the coded information in the element, stored in a Uint8Array.
  • track is an unsigned integer indicating the payload's track.
  • keyframe is a Boolean value set to true if the payload starts an I frame (SimpleBlocks only).
  • discardable is a Boolean value showing the value of the element's Discardable flag. (SimpleBlocks only).

And, the value member shows the block's Timecode value.

Neither of these seem to be the case when I actually utilize the library:

screenshot from 2018-06-04 11-49-56

Looking at the source code for the EBML Decoder, there's no evidence that it's even trying to set these values. Was this a pipe dream feature that just wasn't implemented, or is it sitting on another branch somewhere?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions