Changeset 288413 in webkit
- Timestamp:
- Jan 22, 2022, 7:38:09 PM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r288412 r288413 1 2022-01-22 Peng Liu <peng.liu6@apple.com> 2 3 REGRESSION (Safari 15?): Blob videos slow to pause, affects CBS and CNN 4 https://bugs.webkit.org/show_bug.cgi?id=234066 5 6 Reviewed by Jer Noble. 7 8 `MediaPlayerPrivateMediaSourceAVFObjC::playInternal()` calls `[m_synchronizer setRate:]`, 9 which will make the return value of `MediaPlayerPrivateMediaSourceAVFObjC::paused()` change 10 from true to false. But it won't push the new `paused` value back to the Web process. 11 12 `RemoteMediaPlayerProxy::play()` does call `sendCachedState()` after calling 13 `m_player->play()`, but because `MediaPlayerPrivateMediaSourceAVFObjC::playInternal()` is not 14 called in the same run loop, `sendCachedState()` won't send back the updated `paused` value either. 15 16 In most cases, this is not an issue, because other member functions of `RemoteMediaPlayerProxy` 17 will call `sendCachedState()` to push the updated `paused` value back to the Web process later. 18 However, we did find some videos need the `paused` value to be pushed back the Web process 19 in a timely manner. 20 21 No new tests, manually tested. 22 23 * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm: 24 (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::playInternal): 25 1 26 2022-01-22 Said Abou-Hallawa <said@apple.com> 2 27 -
trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm
r288315 r288413 351 351 [m_synchronizer setRate:m_rate]; 352 352 #endif 353 354 m_player->playbackStateChanged(); 353 355 } 354 356 … … 381 383 [m_synchronizer setRate:0]; 382 384 #endif 385 386 m_player->playbackStateChanged(); 383 387 } 384 388
Note:
See TracChangeset
for help on using the changeset viewer.