<html>
<head>
<title>Silverlight Control Test Page </title>
<script type="text/javascript">
// The ID attribute of the <object/> element in your HTML where you embed SL2VideoPlayer.
var objectID = "SLVIDEO";
// The Name attribute identifying the MediaElement in the XAML of the SIlverlight application -- in SL2VideoPlayer it's "mediaPlayer".
var mediaElementName = "mediaPlayer";
var host = document.getElementById(objectID);
var mediaElement = host.content.findName(mediaElementName);
</script>
</head>
<body>
<object id="SLVIDEO" data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="736" height="552">
<param name="source" value="Scripts/VideoPlayer.xap"/>
<param name="background" value="black" />
<param name="initParams" value="m=Test_Video.wmv" />
<param name="minruntimeversion" value="2.0.31005.0" />
<a href="http://go.microsoft.com/fwlink/?LinkId=124807" style="text-decoration: none;">
<img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none"/>
</a>
</object>
<br><br>
<input name="Playbtn" type="Button" value="Play Video" onClick="mediaElement.Play();">
<input name="Pausebtn" type="Button" value="Pause Video" onClick="mediaElement.Pause();">
<input name="Stopbtn" type="Button" value="Stop Playback" onClick="mediaElement.Stop();">
<br><br>
<input name="FullScrnbtn" type="Button" value="Maximize Screen" onClick="mediaElement.FullScreen();">
</body>
</html>