Download our web app! Download

Cách chèn video youtube tự động play vào blog hay website

Bước 1. Vào yotube mở đoạn video và lấy đoạn code ( ấn vào mục chía sẻ  rồi vào mục Nhúng , copy đoạn code đó lại) .



Đoạn code nhúng có dạng như sau : 
<iframe width="560" height="315" src="https://www.youtube.com/embed/jsPd1kBRMhc" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

 Các bạn có thể thêm video vào mỗi bài viết hoặc thêm vào sidebar tùy ý thích . Để video tự động play các bạn sửa dấu ( " ) sau link video thành ?&amp;hl=en&amp;autoplay=1


Khi đó đoạn code chuyển thành như sau . 

<iframe width="560" height="315" src="https://www.youtube.com/embed/jsPd1kBRMhc?&amp;hl=en&amp;autoplay=1" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

Và đây là kết quả 

Rate this article

Loading...

Đăng nhận xét

© 1Hip. All rights reserved.

Cookies Consent

This website uses cookies to ensure you get the best experience on our website.

Cookies Policy

We employ the use of cookies. By accessing Lantro UI, you agreed to use cookies in agreement with the Lantro UI's Privacy Policy.

Most interactive websites use cookies to let us retrieve the user’s details for each visit. Cookies are used by our website to enable the functionality of certain areas to make it easier for people visiting our website. Some of our affiliate/advertising partners may also use cookies.

Gửi Ticket
Gửi Email
Điện thoại