Skip to content

Commit

Permalink
revert(shaka playback): mantain getProgramDateTime method used at oth…
Browse files Browse the repository at this point in the history
…er playbacks (like hls)
  • Loading branch information
leticiafernandes committed Jun 14, 2021
1 parent ad2bf50 commit 8566524
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/clappr-dash-shaka-playback.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ class DashShakaPlayback extends HTML5Video {
this._minDvrSize = typeof (this.options.shakaMinimumDvrSize) === 'undefined' ? 60 : this.options.shakaMinimumDvrSize
}

getProgramDateTime() {
return this.presentationStartTimeAsDate
}

_updateDvr(status) {
this.trigger(Events.PLAYBACK_DVR, status)
this.trigger(Events.PLAYBACK_STATS_ADD, { 'dvr': status })
Expand Down Expand Up @@ -401,7 +405,7 @@ class DashShakaPlayback extends HTML5Video {
let update = {
current: this.getCurrentTime(),
total: this.getDuration(),
firstFragDateTime: this.presentationStartTimeAsDate
firstFragDateTime: this.getProgramDateTime()
}
let isSame = this._lastTimeUpdate && (
update.current === this._lastTimeUpdate.current &&
Expand Down

0 comments on commit 8566524

Please sign in to comment.