인터넷 방송. flv 형식의 두 가지 프로그램

첫 번 째 종류:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="360" height="270" VIEWASTEXT>

<param name="movie" value="VideoUpload/vcastr22.swf">

<param name="quality" value="high">

<param name="allowFullScreen" value="true" />

<param name="IsAutoPlay" value="1" />

<param name="FlashVars" value="vcastr_file=<%=Content%>.flv&IsAutoPlay=1" />

<embed src="VideoUpload/vcastr22.swf" allowFullScreen="true" FlashVars="vcastr_file=<%=Content%>.flv&IsAutoPlay=1" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="360" height="270"></embed>

</object>
두 번 째:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="400" height="400" id="FLVPlayer1">

  <param name="movie" value="FLVPlayer_Progressive.swf" />

  <param name="salign" value="lt" />

  <param name="quality" value="high" />

  <param name="scale" value="noscale" />

  <param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=../19050b3a-cfb6-4526-a778-946a3fedc2b1&autoPlay=false&autoRewind=false" />

  <embed src="FLVPlayer_Progressive.swf" flashvars="&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=../19050b3a-cfb6-4526-a778-946a3fedc2b1&autoPlay=false&autoRewind=false" quality="high" scale="noscale" width="400" height="400" name="FLVPlayer1" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />

</object>
< head > < / head > 에 추가
<script type="text/javascript">

function MM_CheckFlashVersion(reqVerStr,msg){

  with(navigator){

    var isIE  = (appVersion.indexOf("MSIE") != -1 && userAgent.indexOf("Opera") == -1);

    var isWin = (appVersion.toLowerCase().indexOf("win") != -1);

    if (!isIE || !isWin){  

      var flashVer = -1;

      if (plugins && plugins.length > 0){

        var desc = plugins["Shockwave Flash"] ? plugins["Shockwave Flash"].description : "";

        desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwave Flash 2.0"].description : desc;

        if (desc == "") flashVer = -1;

        else{

          var descArr = desc.split(" ");

          var tempArrMajor = descArr[2].split(".");

          var verMajor = tempArrMajor[0];

          var tempArrMinor = (descArr[3] != "") ? descArr[3].split("r") : descArr[4].split("r");

          var verMinor = (tempArrMinor[1] > 0) ? tempArrMinor[1] : 0;

          flashVer =  parseFloat(verMajor + "." + verMinor);

        }

      }

      // WebTV has Flash Player 4 or lower -- too low for video

      else if (userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 4.0;



      var verArr = reqVerStr.split(",");

      var reqVer = parseFloat(verArr[0] + "." + verArr[2]);

  

      if (flashVer < reqVer){

        if (confirm(msg))

          window.location = "http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";

      }

    }

  } 

}

		</script>

좋은 웹페이지 즐겨찾기