public static function generateXml(CuePoint $cuePoint, SimpleXMLElement $scenes, SimpleXMLElement $scene = null) { if (is_null($scene) || $scene->getName() != 'scene-annotation' || !$cuePoint instanceof Annotation) { return $scene; } $objectType = self::getMetadataObjectTypeCoreValue(AnnotationMetadataObjectType::ANNOTATION); return CuePointMetadataPlugin::generateCuePointXml($scene, $objectType, $cuePoint->getId()); }
public static function generateXml(CuePoint $cuePoint, SimpleXMLElement $scenes, SimpleXMLElement $scene = null) { if (is_null($scene) || $scene->getName() != 'scene-ad-cue-point' || !$cuePoint instanceof AdCuePoint) { return $scene; } $objectType = self::getMetadataObjectTypeCoreValue(AdCuePointMetadataObjectType::AD_CUE_POINT); return CuePointMetadataPlugin::generateCuePointXml($scene, $objectType, $cuePoint->getId()); }