Embedded flash player on web page (1), embedded flash

Source: Internet
Author: User

Embedded flash player on web page (1), embedded flash

The recent project involves the use of Flash players. Videos need to be played on webpages, and different video resources need different players, based on the Stability of use, the complexity of embedding, and the performance advantages and disadvantages, the two embedding methods (different players) are summarized, and the supported video resources are also slightly different. The first method is relatively simple, the supported video formats include flv, mp4, mov, f4v, and 3gp. The following is an introduction on the official website:


(Official Website: http://www.cuplayer.com/Cu/CuPlayerMiniV4)

Page embedding code:

<Script type = "text/javascript" src = "<% = request. getContextPath () %>/js/player/images/swfobject. js "> </script> <div class =" video "id =" CuPlayer "> </div> <script type =" text/javascript "> var so = new SWFObject ("<% = request. getContextPath () %>/js/player/CuPlayerMiniV4.swf "," CuPlayerV4 "," 600 "," 410 "," 9 "," #000000 "); so. addParam ("allowfullscreen", "true"); so. addParam ("allowscriptaccess", "always"); so. addParam ("wmode", "opaque"); so. addParam ("quality", "high"); so. addParam ("salign", "lt"); so. addVariable ("CuPlayerSetFile", "<% = request. getContextPath () %>/js/player/CuPlayerSetFile. xml "); so. addVariable ("CuPlayerFile", "videoURL (video playback address)"); // video resource path, which can be dynamically assigned to so. addVariable ("CuPlayerImage", "<% = request. getContextPath () %>/js/player/images/start.jpg "); // The thumbnail of the video. This image file must be correct so. addVariable ("CuPlayerWidth", "600"); // video width so. addVariable ("CuPlayerHeight", "410"); // video height so. addVariable ("CuPlayerAutoPlay", "yes"); // whether to automatically play so. write ("CuPlayer"); </script>
Note: This is only the embedded code of the page. He also needs some resource files. I put all the required resource files as demos in a folder and packed them into a space.

: Http://download.csdn.net/detail/smszhuang168/7689213


In the next article, we will continue to introduce the embedded use of another player...

Http://blog.csdn.net/huangaigang6688/article/details/38240235


How can I insert a flash player into a webpage?

<Object classid = "clsid: D27CDB6E-AE6D-11cf-96B8-444553540000" codebase = "download.macromedia.com/..sion=6," width = "80" height = "80">
<Param name = "movie" value = "calling the flash Address in the Database">
<Param name = "quality" value = "high">
<Param name = "wmode" value = "transparent">
<Param name = "menu" value = "false">
<Embed src = "calling the flash Address in the Database" width = "80" height = "80" wmode = transparent quality = "high" pluginspage = "www.macromedia.com/go/getflashplayer" type = "application/x -shockwave-flash "menu =" false "> </embed>
</Object>

How to embed a FLASH player into a webpage

Search for the flash you want to embed in the source file of the target webpage. <object> </object> place the text in the source file of Your webpage,
Some websites may use <script> </script>.

Related Article

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.