play() with time parameter not working on iOS 7 #398
Comments
I have some spare cycles to look at this |
@ScottDowne @cadecairos @jbuck my first thought is to actually use @jywsn's work around as the handling mechanism here: https://github.com/mozilla/popcorn-js/blob/master/popcorn.js#L613-L617 I'll keep playing around with this, but if anyone has better ideas, by all means :) |
Waiting for seek feels pretty sane to me. I guess iOS 7 isn't handling this for us. If I recall correctly, spec says play and currentTime changes should queue and fire in the correct order, but I feel like it's probably pretty common for something like that to be simply not be implemented yet? |
Maybe we can feature detect for this and only do the special handling path if necessary? |
I'm not too sure how we would feature detect this. Feels more like flaw detection than feature detection :P Would we detect a generic feature we know is not on iOS then act accordingly? That feel like round about browser detection maybe? shrugs I say don't bother with detection if the seek is not a problem in ff or chrome, and passes the tests. |
Yeah, I think you're right here. iOS has been edge-case for Popcorn.js anyway |
Calling play(N) with a time parameter N does not work on iOS 7. The clip will start playing at the beginning. The only way I could get it to start playing at a specified time was to use currentTime(n), bind a listener to the 'seeked' event, and then call play() in the associated callback.
The text was updated successfully, but these errors were encountered: