Topic: Multiple WMP streams don't go fullscreen (Page 1 of 1) |
|
|---|---|
|
Neurotic (0) Inmate Newly admitted From: |
posted 09-01-2005 14:46
Hi, I have a simple webpage with two media player objects. They should be able to go fullscreen by pressing the button. code: <html>
<head>
<title>Multiple WMP Fullscreen Test</title>
<script language="JavaScript">
function fullScreen(id)
{
var player=document.getElementById(id);
if (player.playState == 3)
{
player.fullScreen=true;
}
}
</script>
</head>
<body>
<table>
<tr>
<td>
<object id="BB1" width="400" height="307" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject">
<param name="URL" value="http://streamers.at.sara.garnierprojects.com/streamgate03">
<param name="SendPlayStateChangeEvents" value="True">
<param name="AutoStart" value="True">
<param name="uiMode" value="none">
</object>
</td>
<td>
<object id="BB2" width="400" height="307" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject">
<param name="URL" value="http://streamers.at.sara.garnierprojects.com/streamgate04">
<param name="SendPlayStateChangeEvents" value="True">
<param name="AutoStart" value="True">
<param name="uiMode" value="none">
</object>
</td>
</tr>
<tr>
<td>
<input type=button name="bt11" value="Play" onClick="BB1.controls.play()">
<input type=button name="bt12" value="Stop" onClick="BB1.controls.stop()">
<input type=button name="bt13" value="Fullscreen" onClick="fullScreen('BB1')">
</td>
<td>
<input type=button name="bt21" value="Play" onClick="BB2.controls.play()">
<input type=button name="bt22" value="Stop" onClick="BB2.controls.stop()">
<input type=button name="bt23" value="Fullscreen" onClick="fullScreen('BB2')">
</td>
</tr>
</table>
</body>
</html>
|