【asp源码栏目提醒】:网学会员为广大网友收集整理了,谁有优酷视频播放器 源代码呢 谢谢大家啦 - Web 开发 - ASP - 分析评论,希望对大家有所帮助!
首页 资讯 移动 云计算 空间 论坛 博客 下载 网摘 程序员 书店 培 这里也许就有你要的答案... o 欢迎您:游客登录注册帮助 CSDN-CSDN 社区-Web 开发-
ASP o 管理菜单 生成帖子 置顶 推荐 取消推荐 锁定 解锁 移动 编辑 删除 帖子加分 帖子高亮 取消高亮 o 结 帖 o 发 帖 o 回 复收藏 谁有优酷视频播放器 不显示删除回源代码呢 谢谢大家啦问题点数:20分,无满意答案结帖,结帖人:mglthunder 楼主发表于:2008-08-28 10:26:13 大家好呀,知道优酷播放器代码的朋友 在此帮 我贴在这里好吗 十分感谢! o o mglthunder 主要和优酷播放效果一模一样,知道代码参数 o mglthunder 的解释的 兄弟在此给你们加分! o o 对我有用0 o 丢个板砖0 o 等 级: o 引用 o 结帖率:81.82 o 举报 o o 管理 o TOP 回复次数:18 1 楼 得分:0 回复于:2008-08-28 11:16:30 不是 U 酷的,但是很像 效果就是 www.dllongcheng.com 里的在线视 o 频 o xiaojielanbaihe o 小杰 代码: o 在那里看就行了 o 等 级: o 对我有用0 o o 丢个板砖0 o 引用 o 举报 o 管理 o TOP 2 楼 得分:0 回复于:2008-08-28 14:08:40 o 一楼的 兄弟,那个网址打不开,优美更详细的 o mglthunder 代码,谢谢啦 o mglt o 对我有用0 o o 丢个板砖0 o 引用o 等 级: o 举报o o 管理 o TOP 3 楼 得分:0 回复于:2008-08-28 15:35:48 ltembed srcquothttp://player.youku.com/player.php/sid/XMzQo 5NzM2/v.swfquot qualityquothighquot widthquot480quoto changke1 heightquot400quot alignquotmiddlequot 8 allowScriptAccessquotsameDomainquoto typequotapplication/x-shockwave-flashquotgtlt/embedgto o 对我有用0o 等 级: o 丢个板砖0 o 引用o o 举报 o 管理 o TOP 4 楼 得分:0 回复于:2008-08-28 16:51:05o ltembedo w srcquothttp://www.blueidea.com/articleimg/2006/08/3995/vca w str.swfvcastr_filehttp://p2p.592365.com/vod/UploadFile t /2008-6/德国侦察兵那叫一个衰啊_1.flv quot showMovieInfo1 d pluginspagequothttp://www.macromedia.com/go/getflashplayer a quot typequotapplication/x-shockwave-flashquot n wmodequottransparentquot qualityquothighquot widthquot335quoto heightquot252quotgtlt/embedgt 漂 流 瓶 o 对我有用0o o 丢个板砖0o 等 o 引用 o 举报 级 o 管理 : o TOPoo 5 楼 得分:0 回复于:2008-09-01 08:26:01o mglthunder 我就是想找 3 楼用户那种的 播放器代码,你这o mglthunder 里只是大包文件,有没有网页中嵌套的播放器代o 码呀? o 对我有用0o 等 级: o 丢个板砖0o o 引用 o 举报 o 管理 o TOP 6 楼 得分:0 回复于:2008-09-01 08:58:52 优酷的电影播放都是采用 flash 格式,播放 swfo 格式文件,应该不难吧,在 Dreamweaver 里就能o sayfree 直接添加。
o sayfree o 对我有用0o o 丢个板砖0 o 引用o 等 级: o 举报o o 管理 o TOP 7 楼 得分:0 回复于:2008-09-02 13:37:05 引用 4 楼 wwtdan 的回复: ltembed srcquothttp://www.blueidea.com/articleimg/2006/08/3995 /vcastr.swfvcastr_filehttp://p2p.592365.com/vod/Up loadFile/2008-6/德国侦察兵那叫一个衰啊_1.flv quot showMovieInfo1o pluginspagequothttp://www.macromedia.com/go/getflashplo xiao ayerquot typequotapplication/x-shockwave-flashquot jiel wmodequottransparentquot qualityquothighquot widthquot335quot anba heightquot252quotgt lt/embedgt iheo 等 级: www.dllongcheng.com 怎么会打不开,我刚才还打开了,因为里面加载的文件,我o 把代码贴出来也没用,你得下载加载的那两个文件 o 对我有用0 o 丢个板砖0 o 引用 o o 管理 o TOP 8 楼 得分:0 回复于:2008-09-02o 13:37:46o xiaojielanbaihe 错了。
应该引用楼主的话o 小杰 o 对我有用0o o 丢个板砖0 o 引用o 等 级: o 举报o o 管理 o TOP 9 楼 得分:0 回复于:2008-09-04 13:49:41 谢谢 4 楼兄弟,只是哥们儿有点儿 笨拙呀,有没有知道在线写 出来的具体代码 或者 打包下载地址呢 ? o 对我有用0 o 丢个板砖0 o 引用o o 举报o m o 管理 g o TOP l t 10 楼 得分:0 回复于:2008-09-04 15:00:42 h 用法: u 加载 common.js n 网页内调用代码: d o ltdiv idquotflv_vcastr_3squotgtlt/divgt e o xi ltscript languagequotjavascriptquot r ao typequottext/javascriptquotgt jio var Arrs_flv_vcastr_3Array m el Arrs_flv_vcastr_3_file视频路径 g an Arrs_flv_vcastr_3_title视频名称 l ba document.getElementByIdflv_vcastr_3s.inne t ih rHTMLvcastrPlayer500350Arrs_flv_vcastr_3_ h e fileArrs_flv_vcastr_3_title1 u o lt/scriptgt n 小 d 杰 common.js 代码 e o r function o 等 vcastrPlayer_width_height_file_title_LogoT 级o extIsAutoPlay :o if typeofIsAutoPlayundefinedo IsAutoPlay0 if typeof_LogoTextundefined o _LogoText var PlayerSRC../avi/22.swf var FlashVarsvcastr_file_fileampvcastr_title _titleampIsAutoPlayIsAutoPlayampIsContinue 1ampLogoText_LogoText var PlayerHTML PlayerHTMLltobject classidquotclsid:d27cdb6e- ae6d-11cf codebasequothttp://fpdownload.macromedia.com/pub/ shockwave/cabs/flash/swflash.cabversion600 0quot widthquot_widthquot heightquot_heightquotgt PlayerHTMLltparam namequotmoviequot valuequotPlayerSRCquotgtltparam namequotqualityquot valuequothighquotgt PlayerHTMLltparam namequotmenuquot valuequotfalsequot /gtltparam namequotallowFullScreenquot valuequottruequot /gt PlayerHTMLltparam namequotFlashVarsquot valuequotFlashVarsquotgt PlayerHTMLltembed srcquotPlayerSRCquot allowFullScreenquottruequot FlashVarsquotFlashVarsquot menuquotfalsequot qualityquothighquot widthquot_widthquot heightquot_heightquot typequotapplication/x- shockwave-flashquot pluginspagequothttp://www.macromedia.com/go/getfl ashplayerquot /gtlt/objectgt return PlayerHTML 我觉得样式还是挺好看的 有一个缺点就是只能播放 flv 文件 o 对我有用0 o 丢个板砖0 o 引用 o 举报 o 管理 o TOP 11 楼 得分:0 回复于:2008-09-04 15:03:13oo xiaojielanbaihe 忘了说明一点,里面加载了一个播放 器外框。
o 小杰 地址只能到o http://www.dllongcheng.com/avi/22o 等 级: .swf 下载这个了。
我传不上去o o 对我有用0 丢个板砖0 o 引用 o 举报 o 管理 o TOP 优酷的电影播放都是采用 flash 格式o o 对我有用1o jasonjar o 丢个板砖1o jason o 引用o o 举报o 等 级: o 管理o o TOP 13 楼 得分:0 回复于:2009-05-09 22:22:28o ltembedo s typequotapplication/x-shockwave-flashquot o srcquothttp://player.youku.com/player.php/Type/Fol 9 der/Fid/896582/Ob/1/Pt/0/sid/XNjk1OTI2NA/v.swf 4 quot 6 idquotmovie_playerquot 3 namequotmovie_playerquot 7 bgcolorquotFFFFFFquot 6 qualityquothighquot 0 allowfullscreenquottruequot 1 flashvarsquotisShowRelatedVideofalseampshowAd0ampsho 4 w_pre1ampshow_next1ampisAutoPlayfalseampisDebugfalo seampUserIDampwinTypeinteriorampplayMovietrueampMM s ControlfalseampMMoutfalseampRecordCode100110021 o 0031004100510062000330043005 9 300730089999quot 4 pluginspagequothttp://www.macromedia.com/go/getfla 6 shplayerquot 3 widthquot600quot 7 heightquot480quotgt 6 lt/embedgt 0 1 o 对我有用0 4 o 丢个板砖1 o 引用o o 举报o 等 o 管理 o TOP 级 :o 14 楼 得分:0 回复于:2009-06-22 15:06:27o 实现目标:o f a 1,实现 flash 播放.flv 格式视频, n d 2,实现在页面查看源代码是看不到视频的物理路径 i n 思路: g q 思路一: i a 网页上嵌入 Media Player 播放视频,功能实现: n g http://download.cnblogs.com/insus/ASPDOTNET/meo diaplayer.zip f a 思路二: n d 通过 cs 页面调用 js 方法实现目的,代码如下: i n ---- 页面代码------ g q ltheadgt i a ltscript typequottext/javascriptquot n srcquotJS/swfobject.jsquotgtlt/scriptgt g lt/headgto ltbody stylequottext-align:centerquotgto 等 ltdiv idquotcontainerquot gt lt/divgt 级 ltscript typequottext/javascriptquot : srcquotJS/JScript.jsquotgt lt/scriptgto lt/bodygt ----- cs 页面------ 可以在在页面代码中调用 js 脚本来实想方法为: Page.ClientScript.RegisterStartupScriptthis.GetType quotjscriptquot quotStartRequestquot id quotquot true ----js 脚本------//通过对 httphandler 的提交实现通讯var f1quotfilequotvar f2quot/quotvar xmlHttpfunction CreateXMLRequest ifwindow.ActiveXObject xmlHttpnewActiveXObjectquotMicrosoft.XMLHTTPquot else ifwindow.XMLHttpRequest xmlHttpnew XMLHttpRequest else alertquot不能创建 XMLHttpRequest!quot function StartRequestmessage CreateXMLRequest xmlHttp.onreadystatechangehandlerstatechange xmlHttp.openquotGETquotquotHandler1.ashxidquotmessagetrue xmlHttp.sendnullfunction handlerstatechange ifxmlHttp.readyState4 ifxmlHttp.status200 f2f2xmlHttp.responseText ondof2 function ondof2//new SWFObject 创建视频播放object 对象 var s1 newSWFObjectplayer.swfply6004009FFB901s1.addParamallowfullscreentrue s1.addParamwmodeopaque s1.addParamallowscriptaccessalways s1.addParamflashvarsf1f2ampautostarttrue s1.writecontainer------httphandler-------//通过传过来的视频 id 可以放回视频的路径amp void ProcessRequest HttpContext context int id Convert.ToInt32context.Request.QueryStringquotidquot Media media MediaBLL.MediaBLL.GetByFidid context.Response.Writemedia.FMediaPlayPath ------------------swfobject.js---------/ SWFObject v1.5: Flash Player detection andembed - http://blog.deconcept.com/swfobject/ SWFObject is c 2007 Geoff Stearns and isreleased under the MIT License: http://www.opensource.org/licenses/mit-license.php /iftypeof deconceptquotundefinedquotvardeconceptnew Objectiftypeofdeconcept.utilquotundefinedquotdeconcept.utilnewObjectiftypeof deconcept.SWFObjectUtilquotundefinedquotdeconcept.SWFObjectUtilnew Objectdeconcept.SWFObjectfunction_1idwh_5c_7_8_9_aifdocument.getElementByIdreturnthis.DETECT_KEY_a_a:quotdetectflashquotthis.skipDetectdeconcept.util.getRequestParameterthis.DETECT_KEYthis.paramsnew Objectthis.variablesnewObjectthis.attributesnewArrayif_1this.setAttributequotswfquot_1ifidthis.setAttributequotidquotidifwthis.setAttributequotwidthquotwifhthis.setAttributequotheightquothif_5this.setAttributequotversionquotnewdeconcept.PlayerVersion_5.toString.splitquot.quotthis.installedVerdeconcept.SWFObjectUtil.getPlayerVersionifwindow.operaampampdocument.allampampthis.installedVer.majorgt7deconcept.SWFObject.doPrepUnloadtrueifcthis.addParamquotbgcolorquotcvarq_7_7:quothighquotthis.addParamquotqualityquotqthis.setAttributequotuseExpressInstallquotfalsethis.setAttributequotdoExpressInstallquotfalsevar_c_8_8:window.locationthis.setAttributequotxiRedirectUrlquot_cthis.setAttributequotredirectUrlquotquotquotif_9this.setAttributequotredirectUrlquot_9deconcept.SWFObject.prototypeuseExpressInstall:function_dthis.xiSWFPath_dquotexpressinstall.swfquot:_dthis.setAttributequotuseExpressInstallquottruesetAttribute:function_e_fthis.attributes_e_fgetAttribute:function_10returnthis.attributes_10addParam:function_11_12this.params_11_12getParams:functionreturnthis.paramsaddVariable:function_13_14this.variables_13_14getVariable:function_15returnthis.variables_15getVariables:functionreturn this.variablesgetVariablePairs:functionvar _16newArrayvar keyvar_18this.getVariablesforkey in _18_16_16.lengthkeyquotquot_18keyreturn _16_19quotquotifnavigator.pluginsampampnavigator.mimeTypesampampnavigator.mimeTypes.lengthifthis.getAttributequotdoExpressInstallquotthis.addVariablequotMMplayerTypequotquotPlugInquotthis.setAttributequotswfquotthis.xiSWFPath_19quotltembed typequotapplication/x-shockwave-flashquotsrcquotquotthis.getAttributequotswfquotquotquotwidthquotquotthis.getAttributequotwidthquotquotquotheightquotquotthis.getAttributequotheightquotquotquotstylequotquotthis.getAttributequotstylequotquotquotquot_19quotidquotquotthis.getAttributequotidquotquotquotnamequotquotthis.getAttributequotidquotquotquot quotvar_1athis.getParamsforvar key in _1a_19keyquotquotquot_1akeyquotquot quotvar_1cthis.getVariablePairs.joinquotampquotif_1c.lengthgt0_19quotflashvarsquotquot_1cquotquotquot_19quot/gtquotelseifthis.getAttributequotdoExpressInstallquotthis.addVariablequotMMplayerTypequotquotActiveXquotthis.setAttributequotswfquotthis.xiSWFPath_19quotltobject idquotquotthis.getAttributequotidquotquotquotclassidquotclsid:D27CDB6E-AE6D-11cf-96B8-444553540000quot widthquotquotthis.getAttributequotwidthquotquotquotheightquotquotthis.getAttributequotheightquotquotquotstylequotquotthis.getAttributequotstylequotquotquotgtquot_19quotltparam namequotmoviequotvaluequotquotthis.getAttributequotswfquotquotquot /gtquotvar_1dthis.getParamsforvar key in _1d_19quotltparam namequotquotkeyquotquotvaluequotquot_1dkeyquotquot /gtquotvar_1fthis.getVariablePairs.joinquotampquotif_1f.lengthgt0_19quotltparam namequotflashvarsquotvaluequotquot_1fquotquot /gtquot_19quotlt/objectgtquotreturn_19write:function_20ifthis.getAttributequotuseExpressInstallquotvar_21new deconcept.PlayerVersion6065ifthis.installedVer.versionIsValid_21ampampthis.installedVer.versionIsValidthis.getAttributequotversionquotthis.setAttributequotdoExpressInstallquottruethis.
上一篇:
【精品文献】DW做ASP程序时关于数据库的几个常见问题
下一篇:
非常好用的串口跟踪程序c++语言实验已通过