flash videoplayer 播放

  • k5_698106
    了解作者
  • 562.2KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-05-06 03:57
    上传日期
flash videoplayer rtmp 播放器
videoPlayer.zip
  • videoPlayer
  • images
  • canvas.gif
    9.2KB
  • upperright_03.gif
    6.5KB
  • playstream_10.gif
    1.2KB
  • lowerright_07.gif
    3.4KB
  • Thumbs.db
    152.5KB
  • top_bar_border.gif
    6.1KB
  • title.gif
    14.5KB
  • spacer.gif
    43B
  • ERROR_getFlashPlayer.gif
    6.6KB
  • footer_bar.gif
    4.5KB
  • middleright_05.gif
    4.5KB
  • scripts
  • swfobject.js
    25.7KB
  • swfs
  • StrobeMediaPlayback.swf
    422.6KB
  • playerProductInstall.swf
    657B
  • .DS_Store
    6KB
  • rtmp_sample1_manifest.f4m
    504B
  • videoplayer.html
    44.1KB
  • hds_sample1_manifest.f4m
    477B
内容介绍
<!-- /* * (C) Copyright 2011 Adobe Systems Incorporated. All Rights Reserved. * * NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the * terms of the Adobe license agreement accompanying it. If you have received this file from a * source other than Adobe, then your use, modification, or distribution of it requires the prior * written permission of Adobe. * THIS CODE AND INFORMATION IS PROVIDED "AS-IS" WITHOUT WARRANTY OF * ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A * PARTICULAR PURPOSE. * * THIS CODE IS NOT SUPPORTED BY Adobe Systems Incorporated. * */ --> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!-- saved from url=(0014)about:internet --> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Adobe Flash Media Server</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style type="text/css"> td img {display: block;}body { background-color: #191919; } a:link { text-decoration: none; color: #F00; } a:hover { text-decoration: underline; color: #F00; } a:visited { text-decoration: none; color: #F00; } a:active { text-decoration: none; color: #F00; } .style22 { color: #666666; } .style23 { font-family: Arial, Helvetica, sans-serif; font-size: 12px; } .style31 { font-family: "Arial"; color: #999999; font-size: 12px; font-weight: bold; } .style34 { font-family: "Arial"; } .style24 { font-size: 11px; color: #999999; font-family: Arial, Helvetica, sans-serif; } .style62 { font-size: 12px; color: #999999; font-family: "myriad Pro"; } .style67 { font-family: "myriad Pro"; color: #999999; font-size: 12px; font-weight: bold; } .style69 { font-family: "Arial"; color: #999999; font-weight: bold; } .style1 { font-family: Arial, Helvetica, sans-serif; color: #999999; font-size: 14px; font-weight: bold; } .style3 { font-family: "Arial"; font-size: 12px; line-height: normal; height: 10px; } .style71 { font-family: "myriad Pro"; } .style73 { font-family: Arial; color: #999999; font-size: 12px; font-weight: bold; } .style74 { font-size: 12px; color: #999999; font-family: Arial; } .style75 { font-family: Arial; color: #CCC; font-size: 12px; font-weight: bold; } .style76 { font-size: 12px; font-family: Arial; color: #FF0000; } .style81 { font-family: Arial; } .style82 { color: #999999; font-size: 12px; } .style83 { font-size: 12px; font-weight: bold; color: #999999; } </style> <!-- functionality --> <script type="text/javascript" src="scripts/swfobject.js"></script> <script language="javascript"> var queryParameters = new Array(); var flashVars = ""; var tag = ""; var url = ""; window.onload = function () { document.getElementById( 'inputURL' ).value = queryParameters['source']; document.getElementById('embedField').innerHTML = tag; for(var i=1 ; i<=10;i++) { var ids = String("sel"+i.toString()); document.getElementById( ids ).style.visibility = "hidden"; document.getElementById( ids ).className = "style76"; } // mark the entry for that index if(queryParameters['idx'] != "") { document.getElementById("td" + queryParameters['idx'] ).className = "style75"; document.getElementById("sel" + queryParameters['idx'] ).style.visibility = "visible"; } } function initialise() { function getUrlParam( name ) { name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); var regexS = "[\\?&]"+name+"=([^&#]*)"; var regex = new RegExp( regexS ); var results = regex.exec( window.location.href ); if( results == null ) return ""; else return unescape( results[1] ); } queryParameters['source'] = getUrlParam('source'); queryParameters['type'] = getUrlParam('type'); queryParameters['idx'] = getUrlParam('idx'); if( queryParameters['source'] == "" ) queryParameters['source'] = "rtmp://localhost/vod/mp4:sample1_500kbps.f4v"; if( queryParameters['type'] == "" ) queryParameters['type'] = "recorded"; if( queryParameters['idx'] == "" ) queryParameters['idx'] = "2"; flashVars += "&src="; flashVars += queryParameters['source']; flashVars += "&autoHideControlBar="; flashVars += unescape("true"); flashVars += "&streamType="; flashVars += queryParameters['type']; flashVars += "&autoPlay="; flashVars += unescape("true"); flashVars += "&verbose="; flashVars += "true"; var soFlashVars = { src: queryParameters['source'], streamType: queryParameters['type'], autoPlay: "true", controlBarAutoHide: "true", controlBarPosition: "bottom" }; tag = "&lt;object width='640' height='377' id='StrobeMediaPlayback' name='StrobeMediaPlayback' type='application/x-shockwave-flash' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' &gt;&lt;param name='movie' value='swfs/StrobeMediaPlayback.swf' /&gt; &lt;param name='quality' value='high' /&gt; &lt;param name='bgcolor' value='#000000' /&gt; &lt;param name='allowfullscreen' value='true' /&gt; &lt;param name='flashvars' value= '"+ flashVars+"'/&gt;&lt;embed src='swfs/StrobeMediaPlayback.swf' width='640' height='377' id='StrobeMediaPlayback' quality='high' bgcolor='#000000' name='StrobeMediaPlayback' allowfullscreen='true' pluginspage='http://www.adobe.com/go/getflashplayer' flashvars='"+ flashVars +"' type='application/x-shockwave-flash'&gt; &lt;/embed&gt;&lt;/object&gt;"; <!-- For version detection, set to min. required Flash Player version, or 0 (or 0.0.0), for no version detection. --> var swfVersionStr = "10.3.0"; <!-- To use express install, set to playerProductInstall.swf, otherwise the empty string. --> var xiSwfUrlStr = "swfs/playerProductInstall.swf"; var params = {}; params.quality = "high"; params.bgcolor = "#000000"; params.allowscriptaccess = "sameDomain"; params.allowfullscreen = "true"; var attributes = {}; attributes.id = "StrobeMediaPlayback"; attributes.name = "StrobeMediaPlayback"; attributes.align = "middle"; swfobject.embedSWF("swfs/StrobeMediaPlayback.swf", "flashContent", "640", "377", swfVersionStr, xiSwfUrlStr, soFlashVars, params, attributes); <!-- JavaScript enabled so display the flashContent div in case it is not replaced with a swf object. --> swfobject.createCSS("#flashContent", "display:block;text-align:left;"); } function playStream() { var url = "source=" + document.getElementById('inputURL').value; var type; if(document.getElementById('vodCheckbox').checked==true) type="vod"; else type="live"; url += ("&type=" + type); document.getElementById('playBtn').href="videoplayer.html?" + url; } function checkbox(type) { if(type=="vod") { if(document.getElementById('liveCheckbox').checked==true) { document.getElementById('liveCheckbox').checked=false; } } if(type=="live") { if(document.getElementById('vodCheckbox').checked==true) { document.getElementById('vodCheckbox').checked=false; } } } initialise(); </script> </head> <body> <table width="100" height="" border="0" align="left" cellpadding="0" cellspacing="0"> <!-- fwtable fwsrc="080715_fms_splash_fireworks.png" fwbase="index.gif" fwstyle="Dreamweaver" fwdocid = "1526025482" fwnested="0" --> <tr><td width="41"><i
评论
    相关推荐