TheDutchBeast Posted December 14, 2012 Share Posted December 14, 2012 Fellow programmers! I have a simple yet for me inpossible question. I have an embedded youtube video and I added autoplay, but now I want it to play fullscreen automatically without the press of a button. I want to open the page and KABOOM, youtube movie fullscreen and autoplay. My question is how do I add the fullscreen function? Here's my code so far: <html> <head> <title> Youtube! </title> </head> <body> <object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/OdT9z-JjtJk&autoplay=1"></param><embed src="http://www.youtube.com/v/OdT9z-JjtJk&autoplay=1" type="application/x-shockwave-flash" width="425" height="350"></embed></object> </body> </html> Link to comment https://forums.phpfreaks.com/topic/271985-youtube-embed-code-automatically-fullscreen/ Share on other sites More sharing options...
Muddy_Funster Posted December 14, 2012 Share Posted December 14, 2012 that's got nothing at all to do with php. Link to comment https://forums.phpfreaks.com/topic/271985-youtube-embed-code-automatically-fullscreen/#findComment-1399322 Share on other sites More sharing options...
TheDutchBeast Posted December 14, 2012 Author Share Posted December 14, 2012 You are partially right indeed. And I apologize, is there any way I can post this on the forum or ask you guys for help"on this subject? Link to comment https://forums.phpfreaks.com/topic/271985-youtube-embed-code-automatically-fullscreen/#findComment-1399323 Share on other sites More sharing options...
Muddy_Funster Posted December 14, 2012 Share Posted December 14, 2012 A mod will move the thread once they see it. I don't know that you can do this with just html, but php won't help. Link to comment https://forums.phpfreaks.com/topic/271985-youtube-embed-code-automatically-fullscreen/#findComment-1399325 Share on other sites More sharing options...
TheDutchBeast Posted December 14, 2012 Author Share Posted December 14, 2012 Okay i've found a solution and I'm now busy with php, and in need of some help. I want the link I fill in to end in my embed code but I just cant get it right. The video just stays blank And then for example this as a link : http://www.youtube.com/watch?v=xRx8lmKub_Y Im here so far now: <?php include '../databaseconnectie/DBconnection2.php'; // connectie toevoegen via include if(isset($_POST['status'])){ $status = $_POST['status']; }elseif(isset($_GET['status'])){ $status = $_GET['status']; }else{ $status = ""; } ?> <html> <head> <link rel="stylesheet" href="../opmaak/opmaak.css" type="text/css"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>De Nassau Infosys FOTO Opdracht Invoeren</title> <link rel="stylesheet" href="opmaak.css" type="text/css"> </head> <body> <h1> <img src="http://denassau.nl/templates/nassau-home/images/denassau-logo.jpg" border="0" width="60" height="35"> De Nassau Infosys YOUTUBE Opdracht Invoeren <img src="http://denassau.nl/templates/nassau-home/images/denassau-logo.jpg" border="0" width="60" height="35"> </h1> <?php if($status == ""){ ?> <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" ENCTYPE="multipart/form-data"> <table> <tr> <td> <?php echo "<b>Voer uw youtube link hieronder in:</b>"; ?> </td> </tr> <tr> <td><b>Youtube Link: </b></td> <td> <input size="50" type="text" name="uploadedyoutube" value=""> </td> </tr> <tr> <td> <input type="submit" name="xsubmit" value="Opslaan en Verzenden"> </td> </tr> <input type="hidden" name="status" value="controle"> </table> </form> <?php } if($status == "controle"){ $youtubelink=$_POST['uploadedyoutube']; echo"<b>Uw ingevulde youtube link is</b>: <br />"; echo "$youtubelink<br />"; echo"<b>Hieronder is uw filmpje zichtbaar:<br />"; ?> <object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/OdT9z-JjtJk&autoplay=1"></param> <embed src="<?php $youtubelink ?>" type="application/x-shockwave-flash" width="425" height="350"> </embed> </object> <?php } Link to comment https://forums.phpfreaks.com/topic/271985-youtube-embed-code-automatically-fullscreen/#findComment-1399326 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.