Skip to content

Commit

Permalink
Merge pull request #43 from clappr/feature/latency-getter
Browse files Browse the repository at this point in the history
Add getters related to Latency information
  • Loading branch information
wijloc authored Nov 1, 2023
2 parents 99ecf25 + d9c6a8c commit f41df24
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/hls.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ export default class HlsjsPlayback extends HTML5Video {
this._hls.currentLevel = this._currentLevel
}

get latency() {
return this._hls.latency
}

get currentProgramDateTime() {
return this._hls.playingDate
}

get _startTime() {
if (this._playbackType === Playback.LIVE && this._playlistType !== 'EVENT')
return this._extrapolatedStartTime
Expand Down

0 comments on commit f41df24

Please sign in to comment.