Skip to content

Commit

Permalink
feat: Add missing export in TsParser (#5145)
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad authored Apr 11, 2023
1 parent 24a3b7d commit 412a7e8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/util/ts_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ shaka.util.TsParser = class {
*
* @param {Uint8Array} data
* @return {!shaka.util.TsParser}
* @export
*/
parse(data) {
const timescale = shaka.util.TsParser.Timescale_;
Expand Down Expand Up @@ -452,6 +453,7 @@ shaka.util.TsParser = class {
* Return the ID3 metadata
*
* @return {!Array.<shaka.extern.ID3Metadata>}
* @export
*/
getMetadata() {
const timescale = shaka.util.TsParser.Timescale_;
Expand Down Expand Up @@ -488,6 +490,7 @@ shaka.util.TsParser = class {
* Return the start time for the audio and video
*
* @return {{audio: ?number, video: ?number}}
* @export
*/
getStartTime() {
return {
Expand All @@ -500,6 +503,7 @@ shaka.util.TsParser = class {
* Return the audio and video codecs
*
* @return {{audio: ?string, video: ?string}}
* @export
*/
getCodecs() {
return {
Expand Down Expand Up @@ -544,6 +548,7 @@ shaka.util.TsParser = class {
* Return the video resolution
*
* @return {{height: ?string, width: ?string}}
* @export
*/
getVideoResolution() {
const TsParser = shaka.util.TsParser;
Expand Down Expand Up @@ -668,6 +673,7 @@ shaka.util.TsParser = class {
*
* @param {Uint8Array} data
* @return {boolean}
* @export
*/
static probe(data) {
const syncOffset = shaka.util.TsParser.syncOffset(data);
Expand All @@ -687,6 +693,7 @@ shaka.util.TsParser = class {
*
* @param {Uint8Array} data
* @return {number}
* @export
*/
static syncOffset(data) {
const packetLength = shaka.util.TsParser.PacketLength_;
Expand Down

0 comments on commit 412a7e8

Please sign in to comment.