CC-5065 : Playlist length is not built on actual cue in/out value
This commit is contained in:
parent
299dfdc18a
commit
a18fc87d97
2 changed files with 23 additions and 4 deletions
|
@ -12,6 +12,20 @@
|
|||
* @package propel.generator.campcaster
|
||||
*/
|
||||
class CcFiles extends BaseCcFiles {
|
||||
|
||||
public function getCueLength()
|
||||
{
|
||||
$cuein = $this->getDbCuein();
|
||||
$cueout = $this->getDbCueout();
|
||||
|
||||
$cueinSec = Application_Common_DateHelper::calculateLengthInSeconds($cuein);
|
||||
$cueoutSec = Application_Common_DateHelper::calculateLengthInSeconds($cueout);
|
||||
$lengthSec = bcsub($cueoutSec, $cueinSec, 6);
|
||||
|
||||
$length = Application_Common_DateHelper::secondsToPlaylistTime($lengthSec);
|
||||
|
||||
return $length;
|
||||
}
|
||||
|
||||
public function getDbLength($format = "H:i:s.u")
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue