开发者

Workaround to timeupdate event not firing on the video element in iOS or Android

开发者 https://www.devze.com 2023-03-08 03:41 出处:网络
I\'m finding that the timeupdate event does not fire on either Safari iOS or Android (2.2, if not others).I开发者_如何转开发\'ve tried removing the controls attribute, as others have suggested that th

I'm finding that the timeupdate event does not fire on either Safari iOS or Android (2.2, if not others). I开发者_如何转开发've tried removing the controls attribute, as others have suggested that they absorb all events, but with no luck.

Has anyone found a workaround for this?

Thanks.


It depends on what you were going to do with the event.

If you're simply looking to find out the current time, maybe set a timer to query for it when 'playing' is fired and remove it on 'paused'. Maybe also query on 'seeked'.

0

精彩评论

暂无评论...
验证码 换一张
取 消