【问题标题】:How to play Video in UIWebView but it will not open in native movie player?如何在 UIWebView 中播放视频但它不会在本机电影播放器​​中打开?
【发布时间】:2014-11-01 23:15:31
【问题描述】:

我必须实现像http://www.ani-view.com/ 这样的功能。我只能在 UIWebView 中播放视频,但是当您单击 UIWebView 上的视频框时,它将在本机电影播放器​​ (MPMoviePlayer) 中打开,而不是在 webview 视频框中。

【问题讨论】:

    标签: html ios iphone uiwebview html5-video


    【解决方案1】:

    在此选项中使用视频标签

        <video id="player" class="video" width="80%" height="500px" webkit-playsinline controls autoplay>
    <source src="ert.mp4" type="video/mp4">
            Your browser does not support the video tag.
    </video>
    

    【讨论】:

      猜你喜欢
      • 2016-01-05
      • 1970-01-01
      • 2013-06-02
      • 1970-01-01
      • 2011-06-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多