Page 1 of 1

Help me Please

Posted: 03 Oct 2015, 22:00
by Xelmep
Dear all, sorry maby i repeat the post, but i`m new here.

I have problem with youtube videos, i import in Video gallery, and when i finish all, then i see just image-thumbnail of video, i not see the video.
I use pop-up and i try ifram code, and also just youtube url, but nothing again. What i need to do ?
I read all documentation but i cant find solution.

Thank you

Re: Help me Please

Posted: 04 Oct 2015, 12:39
by Xelmep
i solved thank you with this code:

Code: Select all

<div id="ytplayer"></div>

<script>
  // Load the IFrame Player API code asynchronously.
  var tag = document.createElement('script');
  tag.src = "https://www.youtube.com/player_api";
  var firstScriptTag = document.getElementsByTagName('script')[0];
  firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);

  // Replace the 'ytplayer' element with an <iframe> and
  // YouTube player after the API code downloads.
  var player;
  function onYouTubePlayerAPIReady() {
    player = new YT.Player('ytplayer', {
      height: '390',
      width: '640',
      videoId: 'vdj11w-8cJc'
    });
  }
</script>

Re: Help me Please

Posted: 04 Oct 2015, 23:01
by Jan
Ok