Skip to content

Commit

Permalink
Merge pull request kaltura#5416 from kaltura/Lynx-12.4.0-PLAT-7217
Browse files Browse the repository at this point in the history
PLAT-7217:add plugin interface && missing fields
  • Loading branch information
hilak authored Apr 4, 2017
2 parents 168a833 + 1147057 commit f7b7d27
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion plugins/cue_points/thumb_cue_point/ThumbCuePointPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @package plugins.thumbCuePoint
*/
class ThumbCuePointPlugin extends KalturaPlugin implements IKalturaCuePoint, IKalturaTypeExtender, IKalturaEventConsumers
class ThumbCuePointPlugin extends KalturaPlugin implements IKalturaCuePoint, IKalturaTypeExtender, IKalturaEventConsumers, IKalturaCuePointXmlParser
{
const PLUGIN_NAME = 'thumbCuePoint';
const CUE_POINT_VERSION_MAJOR = 1;
Expand Down Expand Up @@ -235,6 +235,9 @@ public static function generateXml(CuePoint $cuePoint, SimpleXMLElement $scenes,
if($cuePoint->getEndTime())
$scene->addChild('sceneEndTime', kXml::integerToTime($cuePoint->getEndTime()));

$scene->addChild('title', kMrssManager::stringToSafeXml($cuePoint->getName()));
$scene->addChild('description', kMrssManager::stringToSafeXml($cuePoint->getText()));
$scene->addChild('subType', $cuePoint->getSubType());
$scene->addChild('thumbAssetId', $cuePoint->getAssetId());

return $scene;
Expand All @@ -254,6 +257,9 @@ public static function syndicate(CuePoint $cuePoint, SimpleXMLElement $scenes, S
if($cuePoint->getEndTime())
$scene->addChild('sceneEndTime', kXml::integerToTime($cuePoint->getEndTime()));

$scene->addChild('title', kMrssManager::stringToSafeXml($cuePoint->getName()));
$scene->addChild('description', kMrssManager::stringToSafeXml($cuePoint->getText()));
$scene->addChild('subType', $cuePoint->getSubType());
$scene->addChild('thumbAssetId', $cuePoint->getAssetId());

return $scene;
Expand Down

0 comments on commit f7b7d27

Please sign in to comment.