TextTrack cues should be updated more often than every 250ms.
<rdar://problem/45487169>
Created attachment 352974 [details] Patch
Created attachment 352975 [details] Patch
Comment on attachment 352975 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=352975&action=review > Source/WebCore/platform/graphics/MediaPlayer.cpp:1540 > +bool MediaPlayer::performTaskAtMediaTime(WTF::Function<void()>&& task, MediaTime time) Nit: the return bool isn't used anywhere, is it necessary?
(In reply to Eric Carlson from comment #4) > Comment on attachment 352975 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=352975&action=review > > > Source/WebCore/platform/graphics/MediaPlayer.cpp:1540 > > +bool MediaPlayer::performTaskAtMediaTime(WTF::Function<void()>&& task, MediaTime time) > > Nit: the return bool isn't used anywhere, is it necessary? I was thinking that we could detect when the MediaPlayer didn't support performing a task at a specific time, and fall back to using a Timer. I'm not doing it in this case, because we have the existing 250ms timer to fall back upon. But other use cases of performTaskAtTime() might need to know whether the task will actually get called. TL;DR, it's not necessary now, but it may be nice to have in the future.
Created attachment 352977 [details] Patch for landing
Committed r237376: <https://trac.webkit.org/changeset/237376>