Cara Embed Video & Playlist YouTube di Blog - Menambahkan video youtube kedalam postingan blog bisa menjadi nilai plus untuk artikel yang kita buat, terlebih jika artikel berbentuk tutorial.
embed code
kamu bisa menambahkan video atau playlist YouTube ke dalam postingan situs atau blog dengan cara menyematkan code embed video tersebut. Table of Contents
Cara Mengambil Kode Sematan Video YouTube
- Buka website resmi YouTube
- Cara video YouTube yang ingin disematkan
- Buka video tersebut, lalu Klik Menu
Bagikan
- Pada menu bagikan, Klik
Sematkan
- Salin kode HTML embed video youtube untuk disematkan kedalam blog
Contoh Format Embed Code YouTube
<iframe width="560" height="315" src="https://www.youtube.com/embed/lUis0RGc9LM" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
Kustomisasi Tambahan [Opsional]
Mengaktifkan mode privasi yang ditingkatkan
<iframe width="560" height="315"
src="https://www.youtube.com/embed/lUis0RGc9LM"
title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen>
</iframe>
<iframe width="560" height="315"
src="https://www.youtube-nocookie.com/embed/lUis0RGc9LM"
title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen>
</iframe>
Membuat agar video tersemat diputar otomatis
tambahkan &autoplay=1
ke kode penyematan video tepat setelah ID video
<iframe width="560" height="315"
src="https://www.youtube.com/embed/lUis0RGc9LM"
title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen>
</iframe>
<iframe width="560" height="315"
src="https://www.youtube.com/embed/lUis0RGc9LM?&autoplay=1"
title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen>
</iframe>
Memulai video tersemat pada waktu tertentu
tambahkan ?start=
diikuti dengan waktu dalam detik ke kode penyematan video tepat setelah ID video
<iframe width="560" height="315"
src="https://www.youtube.com/embed/lUis0RGc9LM?Tag_Disini"
title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen>
</iframe>
<iframe width="560" height="315"
src="https://www.youtube.com/embed/lUis0RGc9LM?start=90"
title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen>
</iframe>
Cara Memasang Kode Embed Video Youtube Ke Blog
Setelah sukses mendapatkan kode embed video youtube diatas, sekarang kamu bisa menyematkannya ke blog baik di dalam artikel atau halaman padamode HTML
dan buka Compose.