private function fieldVideo($key, $value, array $fields)
    {
        $before = Json::parse($value[0]);
        $after = Json::parse($value[1]);

        return [
            'type'   => $fields[$key]['type'],
            'before' => [
                'render' => [
                    'url'       => $before['url'],
                    'title'     => $before['title'],
                    'width'     => $before['width'],
                    'height'    => $before['height'],
                    'html'      => $before['html'],
                    'thumbnail' => $before['thumbnail'],
                ],
            ],
            'after'  => [
                'render' => [
                    'url'       => $after['url'],
                    'title'     => $after['title'],
                    'width'     => $after['width'],
                    'height'    => $after['height'],
                    'html'      => $after['html'],
                    'thumbnail' => $after['thumbnail'],
                ],
            ],
        ];
    }
private function fieldVideo($key, $value, array $fields)
    {
        $before = Json::parse($value[0]);
        $after = Json::parse($value[1]);

        return [
            'type'   => $fields[$key]['type'],
            'before' => [
                'render' => [
                    'url'       => $before['url'],
                    'title'     => $before['title'],
                    'width'     => $before['width'],
                    'height'    => $before['height'],
                    'html'      => $before['html'],
                    'thumbnail' => $before['thumbnail'],
                ],
            ],
            'after'  => [
                'render' => [
                    'url'       => $after['url'],
                    'title'     => $after['title'],
                    'width'     => $after['width'],
                    'height'    => $after['height'],
                    'html'      => $after['html'],
                    'thumbnail' => $after['thumbnail'],
                ],
            ],
        ];
    }
private function fieldVideo ( $ key , $ value , array $ fields ) { $ before = Json :: parse ( $ value [ 0 ] ) ; $ after = Json :: parse ( $ value [ 1 ] ) ; return [ 'type' => $ fields [ $ key ] [ 'type' ] , 'before' => [ 'render' => [ 'url' => $ before [ 'url' ] , 'title' => $ before [ 'title' ] , 'width' => $ before [ 'width' ] , 'height' => $ before [ 'height' ] , 'html' => $ before [ 'html' ] , 'thumbnail' => $ before [ 'thumbnail' ] , ] , ] , 'after' => [ 'render' => [ 'url' => $ after [ 'url' ] , 'title' => $ after [ 'title' ] , 'width' => $ after [ 'width' ] , 'height' => $ after [ 'height' ] , 'html' => $ after [ 'html' ] , 'thumbnail' => $ after [ 'thumbnail' ] , ] , ] , ] ; }
Compile changes for video field types.

@param string $key
@param string $value
@param array  $fields

@return array
Compile changes for video field types .