
Membre
|
Bonjour Voila J'ai un probleme avec mon script envoie POST
ce script a pour but de faire regarder les video uploader sur mon site MP4 et flv
voici le script
<form action="" method="POST">
url :<input type="text" size="80" name="url"></input>
<br/>
<input type="submit" value="SUBMIT"/>
</form>
</script>
<link href="video-js.css" rel="stylesheet" type="text/css">
<!-- video.js must be in the <head> for older IEs to work. -->
<script src="video.js"></script>
<!-- Unless using the CDN hosted version, update the URL to the Flash SWF -->
<script>
videojs.options.flash.swf = "video-js.swf";
</script>
</head>
<body>
<?php
$url = $_POST['url'];
if(!$url){
exit();
}
echo '<video id="example_video_1" class="video-js vjs-default-skin" controls preload="none" width="640" height="264"
poster="http://video-js.zencoder.com/oceans-clip.png"
data-setup="{}">
<source src="http://sendsupload.com/xuploads/'.$url.'" type='video/mp4' />
<source src="http://sendsupload.com/xuploads/'.$url.'" type='video/webm' />
<source src="http://sendsupload.com/xuploads/'.$url.'" type='video/ogg' />
<track kind="captions" src="demo.captions.vtt" srclang="en" label="English"></track><!-- Tracks need an ending tag thanks to IE9 -->
<track kind="subtitles" src="demo.captions.vtt" srclang="en" label="English"></track><!-- Tracks need an ending tag thanks to IE9 -->
<p class="vjs-no-js">To view this video please enable JavaScript, and consider upgrading to a web browser that <a href="http://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a></p>
</video>
</object>';
?>
Mais sa marche pas J'ai une page Blanche c'est tout que faire ?
Merci a c'eux qui m'aide
|