-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The ParsedBox structure used by the Mp4Parser, previously, had its property names changed in compiled mode. This makes ParsedBox into an extern, so that it will be preserved unchanged in compiled mode. Closes #1522 Change-Id: I0964f8a4b9ccea57c61e2c587a776ed76cfbc8da
- Loading branch information
Showing
5 changed files
with
64 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/** | ||
* @license | ||
* Copyright 2016 Google Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
|
||
/** | ||
* @externs | ||
*/ | ||
|
||
/** | ||
* @typedef {{ | ||
* parser: !shaka.util.Mp4Parser, | ||
* partialOkay: boolean, | ||
* start: number, | ||
* size: number, | ||
* version: ?number, | ||
* flags: ?number, | ||
* reader: !shaka.util.DataViewReader | ||
* }} | ||
* | ||
* @property {!shaka.util.Mp4Parser} parser | ||
* The parser that parsed this box. The parser can be used to parse child | ||
* boxes where the configuration of the current parser is needed to parsed | ||
* other boxes. | ||
* @property {boolean} partialOkay | ||
* If true, allows reading partial payloads from some boxes. If the goal is a | ||
* child box, we can sometimes find it without enough data to find all child | ||
* boxes. This property allows the partialOkay flag from parse() to be | ||
* propagated through methods like children(). | ||
* @property {number} start | ||
* The start of this box (before the header) in the original buffer. This | ||
* start position is the absolute position. | ||
* @property {number} size | ||
* The size of this box (including the header). | ||
* @property {?number} version | ||
* The version for a full box, null for basic boxes. | ||
* @property {?number} flags | ||
* The flags for a full box, null for basic boxes. | ||
* @property {!shaka.util.DataViewReader} reader | ||
* The reader for this box is only for this box. Reading or not reading to | ||
* the end will have no affect on the parser reading other sibling boxes. | ||
* @exportDoc | ||
*/ | ||
shaka.extern.ParsedBox; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters