Embedded on the web Flash Player (2)

Source: Internet
Author: User

Then in a blog. Here is a flash embedded player. This is the company's internal Flash player, supporting more styles, while supporting the SWF video playback type.

Here is the page embed code:

<link rel= "stylesheet" type= "Text/css" href= "<%=request.getcontextpath ()%>/flash/history/history.css"/ ><script type= "Text/javascript" src= "<%=request.getcontextpath ()%>/flash/history/history.js" >< /script><script type= "Text/javascript" src= "<%=request.getcontextpath ()%>/flash/swfobject.js" > </script><script type= "Text/javascript" >//For version detection, set to Min. required Flash Player Versio     N, or 0 (or 0.0.0), for no version detection.    var swfversionstr = "11.1.0";     To use Express install, set to playerproductinstall.swf, otherwise the empty string.    var xiswfurlstr = "playerproductinstall.swf";    var flashvars = {}; The resource's predecessor path, which is the path to be loaded into flash, for example: Http://demo.com/assets/flash/var Assetpath = "<%=request.getcontextpath ()%>/flash/ ";///config resource path flashvars.url= ' <c:out value=" ${generateswfurl} "/>";//video playback path, can dynamically assign value Flashvars.duration=${duration };//video duration.    Ability to dynamically assign var params = {}; Params.quality = "High";    Params.bgcolor = "#000000";    params.allowscriptaccess = "Samedomain";    Params.allowfullscreen = "true";    params.wmode= "Transparent";    var attributes = {};    Attributes.id = "Videopreviewer";    Attributes.name = "Videopreviewer";    Attributes.align = "Middle";    Anti-cache var d = new Date ();    Flashvars.time = D.gettime (); var preloaderurl = Assetpath + "videopreviewer.swf" + "? Time=" + flashvars.time;//preloader.swf swfobject.embedswf (prel    Oaderurl, "Flashcontent", "380", "290", Swfversionstr, Xiswfurlstr, flashvars, params, attributes);    JavaScript enabled so display the Flashcontent div in case it's not replaced with a SwF object. Swfobject.createcss ("#flashContent", "display:block;text-align:left;"); </script><div class= "Publish_video" ><center style= "position:relative; top:0px;  left:0px; margin:0px; padding:0px; Background: #000000; Overflow:hidden; "><div id=" flashcontent "style=" position:relative; top:0px;  left:0px; margin:0pX padding:0px; " ><p>to view this page ensure the Adobe Flash Player version 11.1.0 or greater is installed.</p><script Type= "Text/javascript" > var pagehost = ((Document.location.protocol = = "https:")? " https://":"/"/"; document.write ("<a href= ' http://www.adobe.com/go/getflashplayer ' ></a> '); </script></div><noscript><object classid= "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width = "390px" height= "390px" id= "Videopreviewer" ><param name= "movie" value= "videopreviewer.swf"/><param name = "Quality" value= "High"/><param name= "bgcolor" value= "#ffffff"/><param name= "allowscriptaccess" value= " Samedomain "/><param name=" allowFullScreen "value=" true "/><!--[if!] Ie]>--><object type= "Application/x-shockwave-flash" Data= "videopreviewer.swf" width= "370px" height= "277PX "><param name=" quality "value=" High "/><param name=" bgcolor "value=" #ffffff "/><param name=" allowScriptAccess "value=" Samedomain "/><param name=" allowFullScreen "value=" true "/><!--<! [endif]--><!--[If GTE IE 6]>--><p>either scripts and active content is not permitted to Runor Adobe Fla SH Player version 11.1.0 or greater is not installed.</p><!--<! [Endif]--><a href= "Http://www.adobe.com/go/getflashplayer" >  </a><!--[if!] ie]>--></object><!--<! [endif]--></object></noscript></center></div>
Note: This is just the embed code for the page, and he needs some resource files. All the resources I need to file as a demo in the directory to be packed and uploaded into space.

:http://download.csdn.net/detail/smszhuang168/7689225

Summary: Flash embedding in fact almost the same, is nothing more than using JS dynamic incoming some of the parameters, the basic code in Flash to the image Lane, the page code basically almost the same.


Copyright notice: This article blog original articles, blogs, without consent, may not be reproduced.

Embedded on the web Flash Player (2)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.