Merge branch 'devel' of dev.sourcefabric.org:airtime into devel
This commit is contained in:
commit
417997e617
|
@ -346,6 +346,7 @@ class ApiController extends Zend_Controller_Action
|
|||
|
||||
$schedule_group_id = $this->_getParam("schedule_id");
|
||||
$media_id = $this->_getParam("media_id");
|
||||
Logging::debug("Received notification of new media item start: $media_id");
|
||||
$result = Application_Model_Schedule::UpdateMediaPlayedStatus($media_id);
|
||||
|
||||
//set a 'last played' timestamp for media item
|
||||
|
|
|
@ -160,6 +160,15 @@ class Application_Model_Scheduler
|
|||
$data["fadeout"] = $plItem['fadeout'];
|
||||
$data["type"] = 0;
|
||||
$files[] = $data;
|
||||
} elseif ($plItem['type'] == 1) {
|
||||
$data["id"] = $plItem['item_id'];
|
||||
$data["cliplength"] = $plItem['length'];
|
||||
$data["cuein"] = $plItem['cuein'];
|
||||
$data["cueout"] = $plItem['cueout'];
|
||||
$data["fadein"] = "00.500000";//$plItem['fadein'];
|
||||
$data["fadeout"] = "00.500000";//$plItem['fadeout'];
|
||||
$data["type"] = 1;
|
||||
$files[] = $data;
|
||||
} elseif ($plItem['type'] == 2) {
|
||||
// if it's a block
|
||||
$bl = new Application_Model_Block($plItem['item_id']);
|
||||
|
|
Loading…
Reference in New Issue