in src/Facebook/InstantArticles/Transformer/Rules/VideoRule.php [70:98]
public static function createFrom($configuration)
{
$video_rule = self::create();
$video_rule->withSelector($configuration['selector']);
if (isset($configuration['containsChild'])) {
$video_rule->withContainsChild($configuration['containsChild']);
}
$video_rule->withProperties(
[
self::PROPERTY_VIDEO_URL,
self::PROPERTY_VIDEO_TYPE,
Video::ASPECT_FIT,
Video::ASPECT_FIT_ONLY,
Video::FULLSCREEN,
Video::NON_INTERACTIVE,
self::PROPERTY_PLAYBACK_MODE,
self::PROPERTY_CONTROLS,
self::PROPERTY_LIKE,
self::PROPERTY_COMMENTS
],
$configuration
);
return $video_rule;
}