fork(1) download
  1. <html>
  2. <head>
  3. <title>Silverlight Control Test Page </title>
  4.  
  5. <script type="text/javascript">
  6. // The ID attribute of the <object/> element in your HTML where you embed SL2VideoPlayer.
  7. var objectID = "SLVIDEO";
  8. // The Name attribute identifying the MediaElement in the XAML of the SIlverlight application -- in SL2VideoPlayer it's "mediaPlayer".
  9. var mediaElementName = "mediaPlayer";
  10. var host = document.getElementById(objectID);
  11. var mediaElement = host.content.findName(mediaElementName);
  12. </script>
  13.  
  14. </head>
  15. <body>
  16.  
  17. <object id="SLVIDEO" data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="736" height="552">
  18. <param name="source" value="Scripts/VideoPlayer.xap"/>
  19. <param name="background" value="black" />
  20. <param name="initParams" value="m=Test_Video.wmv" />
  21. <param name="minruntimeversion" value="2.0.31005.0" />
  22. <a href="http://go.microsoft.com/fwlink/?LinkId=124807" style="text-decoration: none;">
  23. <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none"/>
  24. </a>
  25. </object>
  26.  
  27. <br><br>
  28. <input name="Playbtn" type="Button" value="Play Video" onClick="mediaElement.Play();">
  29. &nbsp;&nbsp;&nbsp;
  30. <input name="Pausebtn" type="Button" value="Pause Video" onClick="mediaElement.Pause();">
  31. &nbsp;&nbsp;&nbsp;
  32. <input name="Stopbtn" type="Button" value="Stop Playback" onClick="mediaElement.Stop();">
  33. <br><br>
  34.  
  35. <input name="FullScrnbtn" type="Button" value="Maximize Screen" onClick="mediaElement.FullScreen();">
  36.  
  37. </body>
  38. </html>
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty