Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add missing export in TsParser #5145

Merged
merged 1 commit into from
Apr 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -444,6 +445,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 @@ -480,6 +482,7 @@ shaka.util.TsParser = class {
* Return the start time for the audio and video
*
* @return {{audio: ?number, video: ?number}}
* @export
*/
getStartTime() {
return {
Expand All @@ -492,6 +495,7 @@ shaka.util.TsParser = class {
* Return the audio and video codecs
*
* @return {{audio: ?string, video: ?string}}
* @export
*/
getCodecs() {
return {
Expand Down Expand Up @@ -536,6 +540,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 @@ -660,6 +665,7 @@ shaka.util.TsParser = class {
*
* @param {Uint8Array} data
* @return {boolean}
* @export
*/
static probe(data) {
const syncOffset = shaka.util.TsParser.syncOffset(data);
Expand All @@ -679,6 +685,7 @@ shaka.util.TsParser = class {
*
* @param {Uint8Array} data
* @return {number}
* @export
*/
static syncOffset(data) {
const packetLength = shaka.util.TsParser.PacketLength_;
Expand Down