์ฌ๊ธฐ ์ฌ์๋ฒํผ์ ๋๋ฅผ์ ์ ํ๋ธ ๋์์์ด ํ์ ์ผ๋ก ๋ฐ์ ์๋๋ก ์ ์ฉํด๋ณด์
1. ์ ํ๋ธ์์ ํ๊ทธ ๊ฐ์ ธ์ค๊ธฐ
framenorder ์์ฑ์ ๋นํ์ค์ด๋ฏ๋ก ์ ๊ฑฐ
๋จ ์ด๋ด๊ฒฝ์ฐ ์๋์ฌ์์ด๋ ๋ฌดํ ์ฌ์์ด ์ ์ฉ๋์ง์๋๋ค.
<iframe width="560" height="315" src="https://www.youtube.com/embed/jeqdYqsrsA0" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
2. ์๋์ฌ์ autoplay
์ ํ๋ธ ์ต์ ์ url๋ค์ ํ๋ผ๋ฉํฐ(๋งค๊ฐ๋ณ์)๋ฅผ ๋ถ์ธ๋ค.
url?ํ๋ผ๋ฉํฐ=๊ฐ&ํ๋ผ๋ฉํฐ=๊ฐ ํ์
3. ์์๊ฑฐ ์ ์ฉ mute
์ฐธ๊ณ ๋งํฌ
https://stackoverflow.com/questions/35044594/youtube-how-to-present-embed-video-with-sound-muted
YouTube: How to present embed video with sound muted
I'm trying to embed a video with the sound muted but I can not figure out how it make it work. Currently I'm using this but doesn't work: <iframe src="https://www.youtube.com/embed/uNRGWVJ10gQ...
stackoverflow.com
*์๋์ฌ์ ํ ๋ ๊ผญ ์์๊ฑฐ(mutd) ํ๊ทธ๊ฐ์ด ์ ์ฉํด์ผ ์ ์ฉ๋จ
autoplay=1&mute=1
4. ๊ณ์์ฌ์ loop
๊ณ์์ฌ์ํ ๋ ๋๊ฒ ํ๊ณ ์ถ์๋
์์ ๋ง์ฐฌ๊ฐ์ง๋ก ์ ํ๋ธ์์ autoplay ๋ฐฉ์์ฒ๋ผ ์ฒดํฌ๋ฅผ ํด๋
๋์ด์ ์ง์์ ์ํด์ ํ๊ทธ๊ฐ ๋์ค์ง ์๋๋ค.
๊ทธ๋ด๋
&playlist=jeqdYqsrsA0
playlist ์์ฑ๊ฐ ๋ค์ ๋์์ ๊ณ ์ ์์ด๋ ๋ฃ๊ธฐ
์๋์์ ์ฐธ์กฐ
https://stackoverflow.com/questions/25779966/youtube-iframe-loop-doesnt-work
5. ์ถ์ฒ์์์๋จ๊ฒ๋ ์๋จ ๋ฐฉ๋ฒ์์
์ ํ๋ธ ์์ฑ ํ๊ทธ
์๋์ฌ์ autoplay / ์์๊ฑฐ ์ ์ฉ mute / ๋ฌดํ๋ฐ๋ณต ์ฌ์ loop
<iframe width="560" height="315" src="https://www.youtube.com/embed/jeqdYqsrsA0?autoplay=1&mute=1&loop=1&playlist=jeqdYqsrsA0" title="YouTube video player" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
์ ํ๋ธ์ ์ฉ2
https://hyojinny.tistory.com/49?category=1094361
html, css - ์ ํ๋ธ ๋์์ 2 /๋ชจ๋ฌํ์ ์ฐฝ ์ ์ฉ
์ ์ฌ๊ธฐ ๋ฉ์ธํ๋ฉด์ ์ ํ๋ธ ๋ฒํผ์ ํด๋ฆญํ๋ฉด ์ ํ๋ธ๊ฐ ๋ณด์ด๊ฒ ํ๊ธฐ ์ํด์ ์์์ ๋จผ์ ๋ฃ์ด๋ณด์๋ค. 16:9์ ๋น์จ์ ๋ง์ถฐ, ๊ฐ๋ก 850 ์ฌ์ด์ฆ๋ก ์์์ ๋ง์ถ๊ณ ์ถ์๋ ์ธ๋ก(๋์ด) ํฌ๊ธฐ๋ฅผ ๊ตฌํด๋ณด์. ๊ฐ
hyojinny.tistory.com
'CSS๐ง > css ๋์์(์ ํ๋ธ)' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
html, css - ์ ํ๋ธ ๋์์ 2 /๋ชจ๋ฌํ์ ์ฐฝ ์ ์ฉ (0) | 2022.09.21 |
---|---|
html css video (ํํ์ด์ง ๋น๋์ค ์ฝ์ ) (0) | 2022.09.15 |
๋๊ธ