我的ASP.NET <video>在FireFox上播放.webm文件播放视频确定,但没有音频</video>

时间:2014-08-12 13:14:22

标签: asp.net firefox audio video

当我在本地调试Visual Basic 2013 asp.net Web应用程序项目时,音频没问题。

                    <video width="640"  controls="controls" preload="auto">
                    <source src="_VIDEO/<% = _video_filename %>.mp4" type="video/mp4"/>
                    <source src="_VIDEO/<% = _video_filename %>.ogv" type="video/ogg"/>   
                    <source src="_VIDEO/<% = _video_filename %>.webm" type="video/webm"/>
                    Your web browser fails to play our video.  <br />
                    Please try:<blockquote>
                     Upgrade your browser, or<br />
                     use a different browser, or<br />
                     Continue your application on a different computer or device. 
                        </blockquote>
                </video> 

1 个答案:

答案 0 :(得分:0)

解决方案:在我的Windows 2008服务器上&gt; IIS&gt; MIME类型&gt; AddType video / webm .webm AddType video / mp4 .mp4 添加类型video / ogg .ogv 添加类型audio / ogg .oga