protected function buildYouTubecode()
    {
        $uid = $this->cObj->data['uid'];
        // Wrong to iframe: https://www.youtube.com/watch?v=cX70vxPssAQ
        // OK: <iframe width="640" height="480" src="http://www.youtube.com/embed/cX70vxPssAQ" frameborder="0" allowfullscreen></iframe>
        $code = Tx_Flvplayer2_Helper_YouTube::getVideoIdFromUrl($this->conf['url']);
        $videoUrl = '//www.youtube.com/embed/' . $code;
        $htmlCode[] = '
				<iframe class="youtube-player" type="text/html" width="' . $this->conf['width'] . '" height="' . $this->conf['height'] . '" src="' . $videoUrl . '" frameborder="0"></iframe>			
			';
        return implode(chr(10), $htmlCode);
    }
 /**
  * @test
  * @return void
  */
 public function getVideoIdFromUrlReturnsFalseOnUnknown()
 {
     $this->assertFalse(Tx_Flvplayer2_Helper_YouTube::getVideoIdFromUrl('cX70vxPssAQ'));
 }