Javascript jPlayer视频未在iOs中播放-iPad和iPhone

Javascript jPlayer视频未在iOs中播放-iPad和iPhone,javascript,ios,jplayer,Javascript,Ios,Jplayer,我的视频可以在PC和Mac的所有浏览器中播放——Chrome、Firefox、IE和Safari,以及Android平板电脑和手机。然而,它不会在iPad或iPhone上播放。我正在用iOS 9.2测试iPadMini2 但当我将iPad与电脑同步并在iPad视频应用程序中播放视频时,它就会播放。因此,这似乎是JPlayer的一个问题 以下是我正在使用的代码: <script type="text/javascript"> $(document).ready(fun

我的视频可以在PC和Mac的所有浏览器中播放——Chrome、Firefox、IE和Safari,以及Android平板电脑和手机。然而,它不会在iPad或iPhone上播放。我正在用iOS 9.2测试iPadMini2

但当我将iPad与电脑同步并在iPad视频应用程序中播放视频时,它就会播放。因此,这似乎是JPlayer的一个问题

以下是我正在使用的代码:

   <script type="text/javascript">
      $(document).ready(function () {
          $("#jquery_jplayer_1").jPlayer({
              ready: function () {
                  $(this).jPlayer("setMedia", {
                      title: "POPPI-Introduction",
                      m4v: "/Video/POPPI-Introduction.m4v",
                      ogv: "/Video/POPPI-Introduction.ogv",
                      webmv: "/Video/POPPI-Introduction.webm"
                  });
              },
              cssSelectorAncestor: "#jp_container_1",
              size: {
                  width: "640px",
                  height: "360px",
                  cssClass: "jp-video-360p"
              },
              swfPath: "/Content/scripts",
              supplied: "m4v, ogv, webmv",
              useStateClassSkin: true,
              autoBlur: false,
              smoothPlayBar: true,
              keyEnabled: true,
              remainingDuration: true,
              toggleDuration: true
          });
      });
  </script>

<div id="jp_container_1" class="jp-video " role="application" aria-label="media player">
  <div class="jp-type-single">
    <div id="jquery_jplayer_1" class="jp-jplayer"></div>
    <div class="jp-gui">
      <div class="jp-video-play">
        <button class="jp-video-play-icon" role="button" tabindex="0">play</button>
      </div>
      <div class="jp-interface">
        <div class="jp-progress">
          <div class="jp-seek-bar">
            <div class="jp-play-bar"></div>
          </div>
        </div>
        <div class="jp-current-time" role="timer" aria-label="time">&nbsp;</div>
        <div class="jp-duration" role="timer" aria-label="duration">&nbsp;</div>
        <div class="jp-details">
          <div class="jp-title" aria-label="title">&nbsp;</div>
        </div>
        <div class="jp-controls-holder">
          <div class="jp-volume-controls">
            <button class="jp-mute" role="button" tabindex="0">mute</button>
            <button class="jp-volume-max" role="button" tabindex="0">max volume</button>
            <div class="jp-volume-bar">
              <div class="jp-volume-bar-value"></div>
            </div>
          </div>
          <div class="jp-controls">
            <button class="jp-play" role="button" tabindex="0">play</button>
            <button class="jp-stop" role="button" tabindex="0">stop</button>
          </div>
          <div class="jp-toggles">
            <button class="jp-repeat" role="button" tabindex="0">repeat</button>
            <button class="jp-full-screen" role="button" tabindex="0">full screen</button>
          </div>
        </div>
      </div>
    </div>
    <div class="jp-no-solution">
      <span>Update Required</span>
      To play the media you will need to either update your browser to a recent version or update your <a href="http://get.adobe.com/flashplayer/" target="_blank">Flash plugin</a>.
    </div>
  </div>
</div>

$(文档).ready(函数(){
$(“#jquery_jplayer_1”).jplayer({
就绪:函数(){
$(this).jPlayer(“setMedia”{
标题:“波比简介”,
m4v:“/Video/POPPI Introduction.m4v”,
ogv:“/Video/POPPI-Introduction.ogv”,
webmv:“/Video/POPPI-Introduction.webm”
});
},
cssSelectorAncestor:#jp#u container_1“,
尺寸:{
宽度:“640px”,
高度:“360px”,
cssClass:“jp-video-360p”
},
swfPath:“/Content/scripts”,
提供:“m4v、ogv、webmv”,
useStateClassSkin:对,
汽车司机:错,
smoothPlayBar:没错,
keydenabled:true,
剩余持续时间:真,
切换持续时间:true
});
});
玩
哑的
最大容量
玩
停止
重复
全屏
需要更新
要播放媒体,您需要将浏览器更新为最新版本,或更新浏览器。

声誉不足,无法发表评论

媒体真的加载了吗?或者它只是加载但不播放?如果是后者,那么这可能是你的问题。

其他线程的回答:

您将无法从$(document).ready()或jPlayer的ready事件播放视频。IOS专门阻止它


我不能测试这个,因为我没有Ipad,但这可能是你的问题。

没有足够的声誉来评论

媒体真的加载了吗?或者它只是加载但不播放?如果是后者,那么这可能是你的问题。

其他线程的回答:

您将无法从$(document).ready()或jPlayer的ready事件播放视频。IOS专门阻止它

我不能测试这个,因为我没有Ipad,但这可能是你的问题