Toggle navigation
Toggle navigation
This project
Loading...
Sign in
이승윤
/
OpenSource-MyCookBook
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Song
2021-05-22 21:03:42 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
710bf0817e49d8eeec938ff8d2fcb2e29b4734ff
710bf081
1 parent
01c30a7f
feat:동영상 프레임 삽입
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
0 deletions
Frame.html
Frame.html
0 → 100644
View file @
710bf08
<!DOCTYPE html>
<html>
<body>
<div
id=
"player0"
></div>
<div
id=
"player1"
></div>
<div
id=
"player2"
></div>
<script>
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
;
var
players
=
[];
players
.
push
(
'player0'
);
players
.
push
(
'player1'
);
players
.
push
(
'player2'
);
var
videoIds
=
[];
videoIds
.
push
(
'037o6vxm0es'
);
videoIds
.
push
(
'kR77WlHRZrs'
);
videoIds
.
push
(
'R6IT_f0XPT8'
);
function
onYouTubeIframeAPIReady
()
{
for
(
var
i
=
0
;
i
<
videoIds
.
length
;
i
++
)
{
player
=
new
YT
.
Player
(
players
[
i
],
{
height
:
'360'
,
width
:
'640'
,
videoId
:
videoIds
[
i
],
events
:
{
// 'onReady': onPlayerReady,
// 'onStateChange': onPlayerStateChange
}
});
}
}
// function onPlayerReady(event) {
// }
// function onPlayerStateChange(event) {
// }
// function stopVideo() {
// }
</script>
</body>
</html>
\ No newline at end of file
Please
register
or
login
to post a comment