Skip to content

Commit

Permalink
feat: Add getManifestType method
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad committed Feb 23, 2023
1 parent 1aee989 commit 2799bf6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -3394,6 +3394,19 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
return this.loadMode_;
}

/**
* Get the current manifest type.
*
* @return {?string}
* @export
*/
getManifestType() {
if (!this.manifest_) {
return null;
}
return this.manifest_.type;
}

/**
* Get the media element that the player is currently using to play loaded
* content. If the player has not loaded content, this will return
Expand Down

0 comments on commit 2799bf6

Please sign in to comment.