播放.flv文件时,找不到视频或拒绝访问

本文关键字:视频 拒绝访问 找不到 flv 文件 播放 | 更新日期: 2023-09-27 18:07:13

我使用。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中添加。flv扩展名它应该是:video/x-flv