{"action":"created","issue":{"url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/issues/915","labels_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/issues/915/labels{/name}","comments_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/issues/915/comments","events_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/issues/915/events","html_url":"https://github.com/sonata-project/SonataMediaBundle/issues/915","id":121168767,"number":915,"title":"Video providers stopped displaying thumbnails","user":{"login":"liyo","id":764774,"avatar_url":"https://avatars.githubusercontent.com/u/764774?v=3","gravatar_id":"","url":"https://api.github.com/users/liyo","html_url":"https://github.com/liyo","followers_url":"https://api.github.com/users/liyo/followers","following_url":"https://api.github.com/users/liyo/following{/other_user}","gists_url":"https://api.github.com/users/liyo/gists{/gist_id}","starred_url":"https://api.github.com/users/liyo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liyo/subscriptions","organizations_url":"https://api.github.com/users/liyo/orgs","repos_url":"https://api.github.com/users/liyo/repos","events_url":"https://api.github.com/users/liyo/events{/privacy}","received_events_url":"https://api.github.com/users/liyo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-09T06:16:49Z","updated_at":"2015-12-17T08:30:47Z","closed_at":null,"body":"Hi there, \r\nso we have a production website running with an stable version of sonata media bundle from a couple months ago. When updating vendors on the dev site, we found that our video thumbnails stopped working. Image provider thumbnails are working good.\r\n\r\nFrom our debugging, it looks like the thumbnail.html.twig file is still called on the video thumbnail but the options passed are the ones that should be passed to the view_{provider}.html.twig file (iframe or embed code). For example for a Vimeo video thumbnail, inside the \"img\" tag, we see:\r\n\r\nsrc=\"fp_version=10&fullscreen=1&title=1&byline=0&portrait=1&hd_off=0&js_onLoad=0&js_swf_id=vimeo_player_5667c51a362cb\" id=\"vimeo_player_5667c51a362cb\" frameborder=\"0\" width=\"500\" height=\"281\"\r\n\r\non a Youtube thumbnail we see the following option names passed (can't print values as we get array to string conversion error):\r\nhtml5, player_url_parameters, player_parameters\r\n\r\nWe already trying refreshing thumbnails, metadata and updating the video sources from the admin with no success. Any help on this is appreciated, thanks!"},"comment":{"url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/issues/comments/165382946","html_url":"https://github.com/sonata-project/SonataMediaBundle/issues/915#issuecomment-165382946","issue_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/issues/915","id":165382946,"user":{"login":"clytemnestra","id":7060048,"avatar_url":"https://avatars.githubusercontent.com/u/7060048?v=3","gravatar_id":"","url":"https://api.github.com/users/clytemnestra","html_url":"https://github.com/clytemnestra","followers_url":"https://api.github.com/users/clytemnestra/followers","following_url":"https://api.github.com/users/clytemnestra/following{/other_user}","gists_url":"https://api.github.com/users/clytemnestra/gists{/gist_id}","starred_url":"https://api.github.com/users/clytemnestra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clytemnestra/subscriptions","organizations_url":"https://api.github.com/users/clytemnestra/orgs","repos_url":"https://api.github.com/users/clytemnestra/repos","events_url":"https://api.github.com/users/clytemnestra/events{/privacy}","received_events_url":"https://api.github.com/users/clytemnestra/received_events","type":"User","site_admin":false},"created_at":"2015-12-17T08:30:47Z","updated_at":"2015-12-17T08:30:47Z","body":"Hello, I tried doing like you said, but I'm getting a small error.\r\n\r\nNote that I have extended the bundle using easy-extends.\r\n\r\n```yml\r\n    sonata.media.provider.youtube2:\r\n        class: Application\\Sonata\\MediaBundle\\Provider\\YouTubeProvider\r\n        tags:\r\n            - { name: sonata.media.provider }\r\n        arguments:\r\n        - sonata.media.provider.youtube2\r\n        - @sonata.media.filesystem.local\r\n        - @sonata.media.cdn.server\r\n        - @sonata.media.generator.default\r\n        - @sonata.media.thumbnail.format\r\n        - @sonata.media.buzz.browser\r\n        - @sonata.media.metadata.proxy\r\n        - ~\r\n        - @sonata.media.resizer.simple\r\n        calls:\r\n            - [ setTemplates, [{helper_view:SonataMediaBundle:Provider:view_youtube.html.twig,helper_thumbnail:SonataMediaBundle:Provider:ytthumbnail.html.twig}]]\r\n```\r\n\r\n```php\r\nnamespace Application\\Sonata\\MediaBundle\\Provider;\r\n\r\nuse Buzz\\Browser;\r\nuse Gaufrette\\Filesystem;\r\nuse Sonata\\MediaBundle\\CDN\\CDNInterface;\r\nuse Sonata\\MediaBundle\\Generator\\GeneratorInterface;\r\nuse Sonata\\MediaBundle\\Metadata\\MetadataBuilderInterface;\r\nuse Sonata\\MediaBundle\\Model\\MediaInterface;\r\nuse Sonata\\MediaBundle\\Resizer\\ResizerInterface;\r\nuse Sonata\\MediaBundle\\Thumbnail\\ThumbnailInterface;\r\nuse Sonata\\MediaBundle\\Provider\\YouTubeProvider as BaseYouTubeProvider;\r\n\r\nclass YouTubeProvider extends BaseYouTubeProvider\r\n{\r\n    /**\r\n     * @var bool\r\n     */\r\n    protected $html5;\r\n\r\n    /**\r\n     * @param string $name\r\n     * @param Filesystem $filesystem\r\n     * @param CDNInterface $cdn\r\n     * @param GeneratorInterface $pathGenerator\r\n     * @param ThumbnailInterface $thumbnail\r\n     * @param Browser $browser\r\n     * @param MetadataBuilderInterface $metadata\r\n     * @param bool $html5\r\n     */\r\n    public function __construct($name, Filesystem $filesystem, CDNInterface $cdn, GeneratorInterface $pathGenerator, ThumbnailInterface $thumbnail, Browser $browser, MetadataBuilderInterface $metadata = null, $html5 = false, ResizerInterface $resizerInterface)\r\n    {\r\n        parent::__construct($name, $filesystem, $cdn, $pathGenerator, $thumbnail, $browser, $metadata);\r\n        $this->html5 = $html5;\r\n        $this->setResizer($resizerInterface);\r\n    }\r\n\r\n    /**\r\n     * {@inheritdoc}\r\n     */\r\n    public function getHelperProperties(MediaInterface $media, $format, $options = array())\r\n    {\r\n        $parameters = parent::getHelperProperties($media, $format, $options);\r\n        $parameters['thumbnail_src'] = $this->getReferenceImage($media);\r\n        $parameters['thumbnail_width'] = $options['width'];\r\n        $parameters['thumbnail_height'] = $options['height'];\r\n        return $parameters;\r\n    }\r\n\r\n\r\n}\r\n\r\n```\r\n\r\nBut I get\r\n\r\n```An exception has been thrown during the rendering of a template (\"Notice: Undefined index: height\") in \"SonataMediaBundle:Form:media_widgets.html.twig\".```\r\n"}}