asp.net 播放flash

注意3点:

1、路径,swf播放器对应的是当前页面的路径,flv视频对应的是swf播放器的路径
2、路径中不能出现中文
3、IIS设置,IIS站点属性中的HTTP头->MIME添加MIME影射关系,MIME类型: video/x-flv 扩展名:.flv

<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=gb2312" />
    <title></title>
    <!--<link rel="stylesheet" type="text/css" href="css/default.css">    -->
    <!--<script type="text/javascript" src="js/slide.js"></script>-->
</head>
<body style="border: 0px; margin: 0; padding: 0px;">
 

<div id="bigpicarea" style="690px;height:600px;overflow:hidden ;" >

<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="690" height="600">

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

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

<param name="FlashVars" value="vcastr_file=VTS_01_1_3.swf&IsAutoPlay=1" />

<embed src="vcastr22.swf" allowFullScreen="true" FlashVars="vcastr_file=VTS_01_1_3.swf&IsAutoPlay=1" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="690" height="600"></embed>

</object>
 
</div>
</body>
</html>
原文地址:https://www.cnblogs.com/vinsonLu/p/3833212.html