Embedding on Web pages Flash Media Player (1)

Source: Internet
Author: User

Do the project in the near future related to Flash Player use, need to play video on the webpage, different video resources, need different players. The advantages of using stability, embedded and embedded complex performance are summed up in two ways (different players), video resources are slightly different, the first way is simpler, the supported video format is less (support FLV,MP4,MOV,F4V,3GP and other video formats). Here is an introduction to the official website:


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

Page embed 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, ability to dynamically assign values So.addvariable ("Cuplayerimage", "<%=request.getcontextpath ()%>/js/player/images/start.jpg" )///video thumbnail, this picture file must be correctly so.addvariable ("Cuplayerwidth", "600"); Video width so.addvariable ("Cuplayerheight", "410"); Video height so.addvariable ("Cuplayerautoplay", "yes"); Whether you are actively playing so.write ("Cuplayer");</script>
Note: This is just the embed code for the page. He also needs some resources files, I will need all the resources files as a demo in the directory to pack and upload into space.

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


The next article continues to introduce the use of an embedded player ...

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

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

Embedding on Web pages Flash Media Player (1)

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.