Showing
1 changed file
with
0 additions
and
49 deletions
Frame.html
deleted
100644 → 0
| 1 | -<!DOCTYPE html> | ||
| 2 | -<html> | ||
| 3 | - <body> | ||
| 4 | - <div id="player0"></div> | ||
| 5 | - <div id="player1"></div> | ||
| 6 | - <div id="player2"></div> | ||
| 7 | - | ||
| 8 | - <script> | ||
| 9 | - var tag = document.createElement('script'); | ||
| 10 | - | ||
| 11 | - tag.src = "https://www.youtube.com/iframe_api"; | ||
| 12 | - var firstScriptTag = document.getElementsByTagName('script')[0]; | ||
| 13 | - firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); | ||
| 14 | - | ||
| 15 | - var player; | ||
| 16 | - var players = []; | ||
| 17 | - players.push('player0'); | ||
| 18 | - players.push('player1'); | ||
| 19 | - players.push('player2'); | ||
| 20 | - var videoIds = []; | ||
| 21 | - videoIds.push('037o6vxm0es'); | ||
| 22 | - videoIds.push('kR77WlHRZrs'); | ||
| 23 | - videoIds.push('R6IT_f0XPT8'); | ||
| 24 | - | ||
| 25 | - function onYouTubeIframeAPIReady() | ||
| 26 | - { | ||
| 27 | - for(var i = 0; i < videoIds.length; i++) | ||
| 28 | - { | ||
| 29 | - player = new YT.Player(players[i], { | ||
| 30 | - height: '360', | ||
| 31 | - width: '640', | ||
| 32 | - videoId: videoIds[i], | ||
| 33 | - events: { | ||
| 34 | - // 'onReady': onPlayerReady, | ||
| 35 | - // 'onStateChange': onPlayerStateChange | ||
| 36 | - } | ||
| 37 | - }); | ||
| 38 | - } | ||
| 39 | - } | ||
| 40 | - | ||
| 41 | - // function onPlayerReady(event) { | ||
| 42 | - // } | ||
| 43 | - // function onPlayerStateChange(event) { | ||
| 44 | - // } | ||
| 45 | - // function stopVideo() { | ||
| 46 | - // } | ||
| 47 | - </script> | ||
| 48 | - </body> | ||
| 49 | -</html> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or login to post a comment