如何在html页面上使用Flash Player渲染视频/音频文件

How to render video/audio files using Flash Players on html page

本文关键字:Player 视频 文件 音频 Flash html      更新时间:2023-09-26

我正在我的html页面上渲染音频或视频文件。我已经尝试过HTML5标签,但HTML5不支持3gp,3gpp视频或aac,amr音频文件。我已经尝试了以下代码,但有些我无法在我的网站上播放视频。

<object type="application/x-shockwave-flash" data="https://localhost/images/Sachin.mp4" width="550" height="400" >
              <param name="movie" value="https://localhost/images/Sachin.mp4"/>
          <!--<![endif]-->
              <a href="http://www.adobe.com/go/getflash">
                  <!-- <video width="320" height="240" controls src="https://localhost/images/Video12.webm"> </video> -->
                  <img src="https://localhost/images/Video12.webm" alt="Get Adobe Flash player"/>
                   <video id="video" controls>
                     <source src="https://localhost/images/Sachin.mp4" type="video/mp4">
                  </video>
              </a>
          <!--[if !IE]>-->
          </object>

你用了源元素吗?如果你想支持现代浏览器,我建议使用webm,但对于IE,你必须安装webm组件。

例如

<video controls>
  <source src="somevideo.webm" type="video/webm">
</video>