CC-1665: Scheduled stream rebroadcasting and recording
-Fix scheduled streams mixed with scheduled files
This commit is contained in:
parent
ccdc06786d
commit
eb4c23b0b6
9 changed files with 29 additions and 22 deletions
|
@ -227,7 +227,7 @@ class Application_Model_Scheduler
|
|||
private function findEndTime($p_startDT, $p_duration)
|
||||
{
|
||||
$startEpoch = $p_startDT->format("U.u");
|
||||
$durationSeconds = Application_Model_Playlist::playlistTimeToSeconds($p_duration);
|
||||
$durationSeconds = Application_Common_DateHelper::playlistTimeToSeconds($p_duration);
|
||||
|
||||
//add two float numbers to 6 subsecond precision
|
||||
//DateTime::createFromFormat("U.u") will have a problem if there is no decimal in the resulting number.
|
||||
|
@ -608,7 +608,7 @@ class Application_Model_Scheduler
|
|||
$length = bcsub($nEpoch , $sEpoch , 6);
|
||||
$cliplength = Application_Common_DateHelper::secondsToPlaylistTime($length);
|
||||
|
||||
$cueinSec = Application_Model_Playlist::playlistTimeToSeconds($removedItem->getDbCueIn());
|
||||
$cueinSec = Application_Common_DateHelper::playlistTimeToSeconds($removedItem->getDbCueIn());
|
||||
$cueOutSec = bcadd($cueinSec , $length, 6);
|
||||
$cueout = Application_Common_DateHelper::secondsToPlaylistTime($cueOutSec);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue