유튜브 스크립트, 비메오
<div id="player"></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;
function onYouTubeIframeAPIReady() {
player = new YT.Player('player', {
videoId: 'id값', <!-- 유튜브 id -->
width:'1200',
height:'760',
playerVars: {
'autoplay': 1,
'rel': 0,
'showinfo': 0,
'modestbranding': 1,
'playsinline': 1,
'showinfo': 0,
'rel': 0,
'controls': 0,
'color':'white',
'loop': 1,
'mute':1,
},
events: {
'onReady': onPlayerReady,
}
});
}
function onPlayerReady(event) {
player.playVideo();
player.mute();
}var done = false;
function onPlayerStateChange(event) {
if (event.data == YT.PlayerState.PLAYING && !done) {
setTimeout(stopVideo, 6000);
done = true;
}
}
function stopVideo() {
player.stopVideo();
}
</script>
자동시작 플레이
Vimeo(비메오) 동영상 옵션 설정!
iframe으로 비메오에 올려진 영상
자동재생, 반복재생, 컨트롤러 숨기기 옵션 넣는방법
<iframe src="https://player.vimeo.com/video/영상id값?autoplay=1&loop=1&title=0&background=1" width="640" height="360" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
<div style="padding:75% 0 0 0;position:relative;margin-top:-40px;"><iframe src="https://player.vimeo.com/video/동영상아이디숫자만?badge=0&autoplay=1&loop=1&title=0&background=1&autopause=0&quality_selector=1&progress_bar=1&player_id=0&app_id=58479" frameborder="0" allow="autoplay; fullscreen; picture-in-picture; clipboard-write; encrypted-media" style="position:absolute;top:0;left:0;width:100%;height:100%;" title="green"></iframe></div><script src="https://player.vimeo.com/api/player.js"></script>
일정부분부터 시작 코드 (ex: 5분 16초부터 시작)
#t=5m16s&
댓글 7개
감사합니다~!
감사합니다.
감사합니다.
좋은 정보 감사합니다.
감사합니다.
좋은 정보 감사합니다.
게시판 목록
개발자팁
질문은 QA에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 5126 | PHP |
|
3년 전 | 1797 | |
| 5125 | PHP | 3년 전 | 1600 | ||
| 5124 | PHP | 3년 전 | 2117 | ||
| 5123 | OS | 3년 전 | 1397 | ||
| 5122 | OS | 3년 전 | 1314 | ||
| 5121 | OS | 3년 전 | 1419 | ||
| 5120 | OS | 3년 전 | 1296 | ||
| 5119 | PHP |
|
3년 전 | 1145 | |
| 5118 | PHP | 3년 전 | 1357 | ||
| 5117 | Mobile |
|
3년 전 | 1399 | |
| 5116 | PHP | 3년 전 | 2294 | ||
| 5115 | MySQL |
welcome
|
3년 전 | 2906 | |
| 5114 | OS | 3년 전 | 2003 | ||
| 5113 | JavaScript | 3년 전 | 1539 | ||
| 5112 | PHP | 3년 전 | 1559 | ||
| 5111 | 기타 |
|
3년 전 | 1299 | |
| 5110 | PHP | 3년 전 | 4545 | ||
| 5109 | PHP | 3년 전 | 1579 | ||
| 5108 | 기타 |
|
3년 전 | 12175 | |
| 5107 | 기타 |
|
3년 전 | 2408 | |
| 5106 | 기타 |
|
3년 전 | 6323 | |
| 5105 | 기타 |
|
3년 전 | 3695 | |
| 5104 | 기타 |
|
3년 전 | 1502 | |
| 5103 | JavaScript | 3년 전 | 1692 | ||
| 5102 | 기타 |
|
3년 전 | 1271 | |
| 5101 | 기타 |
|
3년 전 | 1466 | |
| 5100 | 기타 |
|
3년 전 | 1307 | |
| 5099 | 웹서버 | 3년 전 | 2172 | ||
| 5098 | PHP | 3년 전 | 1326 | ||
| 5097 | PHP |
|
3년 전 | 1986 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기