HTML5 video seeking on iPad

前端 未结 4 779
小蘑菇
小蘑菇 2021-02-05 08:19

I have an HTML5 video player with a custom seek bar, that\'s working great on the iPhone (playing inline) and on the browser.

It plays great on the iPad too and the seek

4条回答
  •  甜味超标
    2021-02-05 08:48

    I am having the same issue - here are the properties in my case:

    UIWebView - iPad Simulator
    duration=4.861666679382324
    startTime=0
    currentTime=4.861666679382324
    buffered(1)=[0-0]
    seekable(0)=
    seeking=false
    error=null
    readystate=4
    networkstate=3
    
    Chrome:
    duration=4.9226298332214355
    startTime=0
    currentTime=4.9226298332214355
    buffered(1)=[0-4.9226298332214355]
    seekable(1)=[0-4.9226298332214355]
    seeking=false
    error=null
    readystate=4
    networkstate=1
    

    so - nothing is getting buffered and nothing is seekable. i am playing a local clip from the resources directory of an iPad bundle, via a UIWebView.

    In my case, all i need is to reset to the top of the video after each play, and I was able to accomplish this via a call to "load()"

提交回复
热议问题