CC-5065 : Playlist length is not built on actual cue in/out value

This commit is contained in:
Naomi 2013-05-08 14:19:22 -04:00
parent 299dfdc18a
commit a18fc87d97
2 changed files with 23 additions and 4 deletions

View file

@ -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")
{