Jump to content

Youtube Embed Code Automatically Fullscreen


TheDutchBeast

Recommended Posts

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>

Edited by TheDutchBeast
Link to comment
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.