【问题标题】:In Safari for iPad, how can I get the current video position via Javascript?在 Safari for iPad 中,如何通过 Javascript 获取当前视频位置?
【发布时间】:2011-06-22 15:35:36
【问题描述】:

当嵌入视频在 iPad 浏览器中播放时,如何在 Javascript 中检索当前 hh:mm:ss 位置(可能还有播放器状态)?

【问题讨论】:

    标签: ios ipad video html5-video


    【解决方案1】:

    如果是在网页中,你可以这样做

    var vid = document.getElementById('videoid');
    var time = vid.currentTime;
    

    http://www.whatwg.org/specs/web-apps/current-work/multipage/the-iframe-element.html#htmlmediaelement中所见

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-01-16
      • 2018-03-16
      • 1970-01-01
      • 1970-01-01
      • 2016-06-16
      • 1970-01-01
      • 1970-01-01
      • 2011-01-28
      相关资源
      最近更新 更多