Help me Please

Phoca Gallery - image gallery extension
Xelmep
Phoca Member
Phoca Member
Posts: 10
Joined: 03 Oct 2015, 20:42

Help me Please

Post 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
Xelmep
Phoca Member
Phoca Member
Posts: 10
Joined: 03 Oct 2015, 20:42

Re: Help me Please

Post 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>
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Help me Please

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply