Fix youtube and vimeo in the media gallery #2816
The only thing of feedback I can provide is that it should be better if we move all HTML outside of the PHP classes. Perhaps using a setting with %1$s to replace filename, etc...
return '<iframe src="' . $this->includeUrl . $mediaItem->getUrl() . '?color=ffffff&title=0&byline=0&portrait=0&badge=0" width="100%" height="100%" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';
return sprintf( $this->htmlForInclusion, $this->includeUrl . $mediaItem->getUrl() );
Which would make it editable on the fly by other users.