2014년 12월 6일 토요일

유튜브 embed 태그

이제 유튜브에서 iframe 밖에 지원을 안하기 때문에...embed 태그를 정리
embed 는 PC 에서만 재생가능, 모바일에서는 iframe 태그로 해야한다.


<embed width = "512"
       height = "384"
       src = "http://www.youtube.com/v/주소"
       type = "application/x-shockwave-flash"
       allowscriptaccess = "always"
       allowfullscreen = "true">
</embed>

옵션

- 기본 360, 240-360-480-720-1080
&vq=light
&vq=medium
&vq=large
&vq=hd720
&vq=hd1080

- 자동재생
&vq=&autoplay=1

- 반복재생
?version=2&loop=1

- 시작지점,끝지점
&start=30
&end=300

- 추천동영상 표시
&rel=1


<embed width = "512" 
       height = "384" 
       src = "http://www.youtube.com/v/주소?version=2&loop=1&vq=hd720&autoplay=1&start=30&end=60&rel=0"
       type = "application/x-shockwave-flash" 
       allowscriptaccess = "always" 
       allowfullscreen = "true">
</embed>

<iframe width = "512" 
        height = "384" 
        src = "http://www.youtube.com/embed/주소?vq=large&autoplay=0&start=12&rel=1" 
        frameborder = "0" 
        allowfullscreen>
</iframe>

댓글 없음:

댓글 쓰기

ChatGPT 와 AI 미래에 대한 대화, 그리고 감동

우연히 유튜브에서 구글 전 CEO 에릭슈미트가 한 이야기를 보았다. 앞으로 1~2년 사이에 인공지능으로 인해 많은것들이 바뀔것이다. 뭐 이런 이야기는 누구나 할 수 있는 말이다. 책 팔아먹기위해 나온 영상일 수도 있겠지만, 핵심은 영상 뒷부분에 있다....