5 cách chèn video từ youtube lên website, blog

Nói về cách chèn thì quá dễ dàng với đa số các bạn rồi. Tuy nhiên mình xin note lại một số cách tùy biến video khi nhúng vào website hay blog.
1. Với video bình thường : Thì bạn cứ copy đoạn mã nhúng gắn vào là xong nó ở chế mặc định rồi.
2. Cho video phát từ giây nào theo ý muốn
Vd: mình cho phát từ 60 giây :

Cách cấu hình :
<iframe allowfullscreen="" frameborder="0" height="360" src="https://www.youtube.com/embed/aXskTZlryzU?&start=60" width="480"></iframe>

3. Cho video tự phát :
Cách cấu hình :
<iframe allowfullscreen="" frameborder="0" height="360" src="https://www.youtube.com/embed/aXskTZlryzU?autoplay=1" width="480"></iframe>
4. Không đề xuất video liên quan sau khi kết thúc :
<iframe allowfullscreen="" frameborder="0" height="360" src="https://www.youtube.com/embed/aXskTZlryzU?&rel=0" width="480"></iframe>
5. Phát lại video sau khi kết thúc :
<iframe allowfullscreen="" frameborder="0" height="360" src="https://www.youtube.com/embed/aXskTZlryzU?&loop=1" width="480"></iframe>


1 comment :