Fixed startTimeStamp not being added to earlyEnd when calculating resume time stamp after livestream end in pushback mode.
This commit is contained in:
parent
eb8ada7fa0
commit
3d4e0a6621
|
|
@ -1230,6 +1230,7 @@ class queue{
|
|||
this.streamLock = false;
|
||||
|
||||
//We don't have to save here since someone else will do it for us :)
|
||||
//Reminder for those of us reading this in the future since I'm a dipshit: this only clears the DB liveRemainder, NOT the RAM backed variable
|
||||
chanDB.media.liveRemainder = null;
|
||||
|
||||
//Get current epoch
|
||||
|
|
@ -1266,7 +1267,7 @@ class queue{
|
|||
|
||||
/**
|
||||
* Overwrites livestream over scheduled media content after it has ended
|
||||
* @param {queuedMedia} wasPlaying - Media object that was playing while we started the Livestream
|
||||
* @param {queuedMedia} wasPlaying - Media object that was playing (from the current livestream)
|
||||
* @param {Mongoose.Document} chanDB - Pass through Channel Document to save on DB Transactions
|
||||
*/
|
||||
async livestreamOverwriteSchedule(wasPlaying, chanDB){
|
||||
|
|
@ -1355,7 +1356,7 @@ class queue{
|
|||
|
||||
/**
|
||||
* Pushes back any missed content scheduled during Livestream after Livestream has ended.
|
||||
* @param {queuedMedia} wasPlaying - Media object that was playing while we started the Livestream
|
||||
* @param {queuedMedia} wasPlaying - Media object that was playing (from the current livestream)
|
||||
* @param {Mongoose.Document} chanDB - Pass through Channel Document to save on DB Transactions
|
||||
*/
|
||||
async livestreamPushbackSchedule(wasPlaying, chanDB){
|
||||
|
|
@ -1385,7 +1386,8 @@ class queue{
|
|||
//if we have a live remainder
|
||||
if(this.liveRemainder != null){
|
||||
//Set item to continue where it left off
|
||||
this.liveRemainder.startTimeStamp = this.liveRemainder.earlyEnd;
|
||||
//TODO: Account for liveRemainder
|
||||
this.liveRemainder.startTimeStamp = this.liveRemainder.startTimeStamp + this.liveRemainder.earlyEnd;
|
||||
|
||||
//Rip out the early end so it finish up
|
||||
this.liveRemainder.earlyEnd = null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue