Guest User

Untitled

a guest
Mar 23rd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. var player;
  2.  
  3. function onYouTubeIframeAPIReady()
  4. {
  5. player = new YT.Player('youtube',
  6. {
  7. height: '390',
  8. width: '640',
  9. videoId: 'M7lc1UVf-VE',
  10. playerVars:
  11. {
  12. autoplay: 0, // start automatically
  13. controls: 0, // don't show the controls (we can't click them anyways)
  14. modestbranding: 1, // show smaller logo
  15. loop: 1 // loop when complete
  16. },
  17. events:
  18. {
  19. 'onReady': onPlayerReady,
  20. 'onStateChange': onPlayerStateChange
  21. }
  22. });
  23. }
Add Comment
Please, Sign In to add comment