Answer the question
In order to leave comments, you need to log in
How to make youtube embed video work forever in php?
Good afternoon.
There is a code:
and$v->link = 'super_cool_video_ID';
<iframe
width="100%" height="250"
src="https://www.youtube.com/embed/<?=$v->link?>"
frameborder="0" allow="autoplay; encrypted-media"
allowfullscreen>
</iframe>
Answer the question
In order to leave comments, you need to log in
I didn't understand the question at all, so I'm embedding it like this.
var player; function onYouTubeIframeAPIReady()
{ player = new YT.Player('player',{ videoId:'<?php echo''.$fulluri2.'' ; ?>',
playerVars: { autoplay: 1, html5: 1, theme: "light", modesbranding: 0,
color: "white", iv_load_policy: 3, showinfo: 0, controls: 2, 'wmode':'opaque',<?php echo ''.$list.''; ?>}, }); }
var tag = document.createElement('script');tag.src = "https://www.youtube.com/player_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question