1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
| $play = $_GET['play'];
$sql = SK_MySQL::placeholder(
"SELECT `profile_id`,`username`,`password`
FROM `".TBL_PROFILE."`
WHERE username='?'", $_SESSION['%http_user%'][username]
);
$req = mysql_query($sql) or die('Erreur SQL !<br>'.$sql.'<br>'.mysql_error());
// on fait une boucle qui va faire un tour pour chaque enregistrement
while($data = mysql_fetch_assoc($req))
{
// on affiche les informations de l'enregistrement en cours
$chat_user= $data['username'];
$chat_id= $data['profile_id'];
}
?>
<body>
<script>
function getFlashMovie(movieName) {
var isIE = navigator.appName.indexOf("Microsoft") != -1;
return (isIE) ? window[movieName] : document[movieName];
}
</script>
<td>
<center>
<object type="application/x-shockwave-flash" data="VideoIO11.swf"
id="video2" width="320" height="240">
<param name="movie" value="VideoIO11.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
<param name="allowFullScreen" value="true" />
<param name="allowScriptAccess" value="always" />
<param name="flashVars" value="controls=true" />
</object>
</center>
<center>
<input id="src2" type="hidden" autocomplete="off" style="width:170px;"
value="rtmp://host.com/flowplayer"/>
<input id="play2" type="hidden" autocomplete="off" style="width:50px;"
value="<? echo $play; ?>"/>
<br/>
<input value="Voir" type="button"
onclick="getFlashMovie('video2').setProperty('src',
document.getElementById('src2').value
+ '?play=' + document.getElementById('play2').value)"/>
<input value="Arreter" type="button"
onclick="getFlashMovie('video2').setProperty('src', null)"/>
</center>
</td> |
Partager