我用过.flv文件,我的代码是:

<script type="text/javascript">
    var playerFlv = new SWFObject(path + 'player.swf', "Player", "500", "350", "9");
                playerFlv.addVariable('allowfullscreen', 'true');
                playerFlv.addVariable("allowscriptaccess", "always");
                playerFlv.addVariable("enableJavascript", "true");
                playerFlv.addVariable("image", path + Image);
                playerFlv.addVariable("file", path + 'VideoFile/' + video);
                playerFlv.write("playerview");
</script>

最佳答案

确保将.flv扩展名添加到IIS中的Mime类型,它应该是:video / x-flv

关于c# - 播放.flv文件时找不到视频或访问被拒绝,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/7279644/

10-13 04:12