Skip to content

"You must be using the iframe method of embedding videos" #74

@Joostan

Description

@Joostan

Does this mean i can use the: YouTube IFrame Player API?

i.e.

      var tag = document.createElement('script');
      tag.src = "https://www.youtube.com/iframe_api";
      var firstScriptTag = document.getElementsByTagName('script')[0];
      firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);

      var player;
      function onYouTubeIframeAPIReady() {
        player = new YT.Player('mydiv', {
          height: '390',
          width: '640',
          videoId: 'XXXXXXX',
        });
      }

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions