Title: [292572] trunk/Source/WebCore
- Revision
- 292572
- Author
- [email protected]
- Date
- 2022-04-07 15:41:56 -0700 (Thu, 07 Apr 2022)
Log Message
Full screen video progress bar flickers after dragging it.
https://bugs.webkit.org/show_bug.cgi?id=238859
rdar://90412851
A WebAVPlayerController pretends to be an AVPlayerController by
implementing most methods of it, but not all.
When dragging the progress bar, AVKit calls the method isSeeking to
determine if we are seeking or not and if true will call seekToTime
to retrieve the last seek position and display the progress bar
accordingly.
Those two methods weren't implemented by WebAVPlayerController.
At present, we don't have information about the seeking operation having
completed or not, but we do know if we are scrubbing. So map isSeeking
to isScrubbing, this approximation is sufficient at present.
Reviewed by Jer Noble.
* platform/ios/WebAVPlayerController.h:
* platform/ios/WebAVPlayerController.mm:
(-[WebAVPlayerController seekToTime:]):
(-[WebAVPlayerController seekToTime:toleranceBefore:toleranceAfter:]):
(-[WebAVPlayerController isSeeking]):
(-[WebAVPlayerController seekToTime]):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (292571 => 292572)
--- trunk/Source/WebCore/ChangeLog 2022-04-07 22:38:48 UTC (rev 292571)
+++ trunk/Source/WebCore/ChangeLog 2022-04-07 22:41:56 UTC (rev 292572)
@@ -1,3 +1,29 @@
+2022-04-07 Jean-Yves Avenard <[email protected]>
+
+ Full screen video progress bar flickers after dragging it.
+ https://bugs.webkit.org/show_bug.cgi?id=238859
+ rdar://90412851
+
+ A WebAVPlayerController pretends to be an AVPlayerController by
+ implementing most methods of it, but not all.
+ When dragging the progress bar, AVKit calls the method isSeeking to
+ determine if we are seeking or not and if true will call seekToTime
+ to retrieve the last seek position and display the progress bar
+ accordingly.
+ Those two methods weren't implemented by WebAVPlayerController.
+ At present, we don't have information about the seeking operation having
+ completed or not, but we do know if we are scrubbing. So map isSeeking
+ to isScrubbing, this approximation is sufficient at present.
+
+ Reviewed by Jer Noble.
+
+ * platform/ios/WebAVPlayerController.h:
+ * platform/ios/WebAVPlayerController.mm:
+ (-[WebAVPlayerController seekToTime:]):
+ (-[WebAVPlayerController seekToTime:toleranceBefore:toleranceAfter:]):
+ (-[WebAVPlayerController isSeeking]):
+ (-[WebAVPlayerController seekToTime]):
+
2022-04-07 Simon Fraser <[email protected]>
Add a LayerBacking RenderingPurpose
Modified: trunk/Source/WebCore/platform/ios/WebAVPlayerController.h (292571 => 292572)
--- trunk/Source/WebCore/platform/ios/WebAVPlayerController.h 2022-04-07 22:38:48 UTC (rev 292571)
+++ trunk/Source/WebCore/platform/ios/WebAVPlayerController.h 2022-04-07 22:41:56 UTC (rev 292572)
@@ -61,6 +61,8 @@
@property (readonly) BOOL canSeekFrameBackward;
@property (readonly) BOOL canSeekFrameForward;
@property (readonly) BOOL hasContentChapters;
+@property (readonly) BOOL isSeeking;
+@property (readonly) NSTimeInterval seekToTime;
@property BOOL canPlay;
@property (getter=isPlaying) BOOL playing;
Modified: trunk/Source/WebCore/platform/ios/WebAVPlayerController.mm (292571 => 292572)
--- trunk/Source/WebCore/platform/ios/WebAVPlayerController.mm 2022-04-07 22:38:48 UTC (rev 292571)
+++ trunk/Source/WebCore/platform/ios/WebAVPlayerController.mm 2022-04-07 22:41:56 UTC (rev 292572)
@@ -65,6 +65,7 @@
BOOL _liveStreamEventModePossible;
BOOL _isScrubbing;
BOOL _allowsPictureInPicture;
+ NSTimeInterval _seekToTime;
}
- (instancetype)init
@@ -271,6 +272,7 @@
- (void)seekToTime:(NSTimeInterval)time
{
+ _seekToTime = time;
if (self.delegate)
self.delegate->seekToTime(time);
}
@@ -277,6 +279,7 @@
- (void)seekToTime:(NSTimeInterval)time toleranceBefore:(NSTimeInterval)before toleranceAfter:(NSTimeInterval)after
{
+ _seekToTime = time;
if (self.delegate)
self.delegate->seekToTime(time, before, after);
}
@@ -395,6 +398,16 @@
return _isScrubbing;
}
+- (BOOL)isSeeking
+{
+ return _isScrubbing;
+}
+
+- (NSTimeInterval)seekToTime
+{
+ return _seekToTime;
+}
+
- (BOOL)canScanForward
{
return [self canPlay];
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes