Your Ad Here

Posted By

anvilcity on 09/15/10


Tagged

flash video


Versions (?)

Embedding Flash video using swfobject and StrobeMediaPlayer


 / Published in: JavaScript
 

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title> </title>
  6.  
  7. <script type="text/javascript" src="scripts/swfobject.js"></script>
  8. <script type="text/javascript">
  9. var flashvars = {};
  10. flashvars.src = "videos/weblords_60_sec_splash.flv";
  11. flashvars.poster = "splash01.jpg";
  12. var params = {};
  13. params.movie = "StrobeMediaPlayback.swf";
  14. params.allowfullscreen = "false";
  15. params.allowscriptaccess = "always";
  16. var attributes = {};
  17.  
  18. // Embed the player SWF:
  19.  
  20. swfobject.embedSWF
  21. ( "StrobeMediaPlayback.swf" //swf file name
  22. , "videoDiv" // targeted div
  23. , "652", "366" // width, height
  24. , "10.1.0" // Flash version
  25. , "scripts/expressInstall.swf" //location of expressinstall script
  26. , flashvars
  27. , params
  28. , attributes
  29. );
  30. </script>
  31.  
  32. </head>
  33. <body>
  34.  
  35. <div id="videoDiv">
  36.  
  37. </div>
  38.  
  39.  
  40.  
  41.  
  42. </body>
  43. </html>

Report this snippet  

You need to login to post a comment.