Forum » » Le coin des codeurs » » Meta Youtube Html5
Posté : 9 juin 2019 à 14:41
function MM_ytvideo($id_yt_video,$bloc_width,$bloc_height,$autoplay) {
$content="";
$id_yt_video = arg_filter($id_yt_video);
$bloc_width = arg_filter($bloc_width);
$bloc_height = arg_filter($bloc_height);
$autoplay = arg_filter($autoplay);
$content .='<!iframe! width="'.$bloc_width.'" height="'.$bloc_height.'" src="https://www.youtube.com/!embed!/'.$id_yt_video.'?autoplay='.$autoplay.'" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></!iframe!>';
return ($content);
}
Cet article provient de NPDS
https://www.npds.org/viewtopic.php?topic=26687&forum=5