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)