nickjonnes Posted May 30, 2011 Share Posted May 30, 2011 hey guys, what i have done so far is got the link to a bbc video feed so when you go to my site the php code will retrive the latest video from bbc and get the link. so i now have $url as having the value of the video but i now need to insert it into the html embed video code. so how can i make this. <object width="416" height="374" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="ep"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="wmode" value="transparent" /><param name="movie" value="http://i.cdn.turner.com/cnn/.element/apps/cvp/3.0/swf/cnn_416x234_embed.swf?context=embed_edition&videoId=world/2009/06/28/penhaul.lok.honduras.cnn" /><param name="bgcolor" value="#000000" /><embed src="http://i.cdn.turner.com/cnn/.element/apps/cvp/3.0/swf/cnn_416x234_embed.swf?context=embed_edition&videoId=world/2009/06/28/penhaul.lok.honduras.cnn" type="application/x-shockwave-flash" bgcolor="#000000" allowfullscreen="true" allowscriptaccess="always" width="416" wmode="transparent" height="374"></embed></object> Link to comment https://forums.phpfreaks.com/topic/237870-creating-the-embed-code-for-video/ Share on other sites More sharing options...
seanlim Posted May 30, 2011 Share Posted May 30, 2011 Try <param name="movie" value="<?php echo $url; ?>" /> and <embed src="<?php echo $url; ?>" type="application/x-shockwave-flash" bgcolor="#000000" allowfullscreen="true" allowscriptaccess="always" width="416" wmode="transparent" height="374"> Link to comment https://forums.phpfreaks.com/topic/237870-creating-the-embed-code-for-video/#findComment-1222361 Share on other sites More sharing options...
chintansshah Posted May 30, 2011 Share Posted May 30, 2011 <object width="416" height="374" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="ep"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="wmode" value="transparent" /><param name="movie" value="http://i.cdn.turner.com/cnn/.element/apps/cvp/3.0/swf/cnn_416x234_embed.swf?context=embed_edition&videoId=world/2009/06/28/penhaul.lok.honduras.cnn" /><param name="bgcolor" value="#000000" /><embed src="<?=$url?>" type="application/x-shockwave-flash" bgcolor="#000000" allowfullscreen="true" allowscriptaccess="always" width="416" wmode="transparent" height="374"></embed></object> Link to comment https://forums.phpfreaks.com/topic/237870-creating-the-embed-code-for-video/#findComment-1222368 Share on other sites More sharing options...
nickjonnes Posted May 31, 2011 Author Share Posted May 31, 2011 no the value of $url or whatever will be dynamic so that wont work Link to comment https://forums.phpfreaks.com/topic/237870-creating-the-embed-code-for-video/#findComment-1222826 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.