Skip to content
Cyril Concolato edited this page May 29, 2015 · 2 revisions

You can contribute by writing tests.

The simplest tests to write are box parsing or box writing tests. Simply file a pull request on the file qunit-box-data.js providing an additional JSON bloc with the following properties. The url property is the HTTP URL of the box-structure file to parse for this test. Optionally, you can provide a byte range to fetch with rangeStart and rangeSize. The boxname property contains the name of the box (used for display in the Qunit test page). The data property contains an object representing all the box properties that you want to test (primitive types or more complex types, including objects). For example, here is the JS object for the DASH emsg box.

{ 
  url: "./mp4/box/emsg.m4s",
  rangeStart: 106,
  rangeSize: 494,
  boxname: "emsg",
  data: {
    type: "emsg",
    size: 482,
    flags: 0,
    version: 0,
    scheme_id_uri: "urn:mpeg:dash:event:2012",
    value: "advert",
    timescale: 1,
    presentation_time_delta: 1,
    event_duration: 1,
    id: 1
  }
}
Clone this wiki locally