Title: [277766] trunk/Source/WebCore
- Revision
- 277766
- Author
- peng.l...@apple.com
- Date
- 2021-05-19 17:30:46 -0700 (Wed, 19 May 2021)
Log Message
[iOS] Video playback pauses when switching apps (video enters picture-in-picture from fullscreen)
https://bugs.webkit.org/show_bug.cgi?id=225981
Reviewed by Jer Noble.
Similar to Mac, on iOS devices, we should not pause a video playback
when the video enters picture-in-picture from fullscreen.
* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::shouldOverrideBackgroundPlaybackRestriction const):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (277765 => 277766)
--- trunk/Source/WebCore/ChangeLog 2021-05-20 00:25:44 UTC (rev 277765)
+++ trunk/Source/WebCore/ChangeLog 2021-05-20 00:30:46 UTC (rev 277766)
@@ -1,3 +1,16 @@
+2021-05-19 Peng Liu <peng.l...@apple.com>
+
+ [iOS] Video playback pauses when switching apps (video enters picture-in-picture from fullscreen)
+ https://bugs.webkit.org/show_bug.cgi?id=225981
+
+ Reviewed by Jer Noble.
+
+ Similar to Mac, on iOS devices, we should not pause a video playback
+ when the video enters picture-in-picture from fullscreen.
+
+ * html/HTMLMediaElement.cpp:
+ (WebCore::HTMLMediaElement::shouldOverrideBackgroundPlaybackRestriction const):
+
2021-05-19 Sam Weinig <wei...@apple.com>
Remove ImageBuffer::toBGRA() and replace its uses with the more general ImageBuffer::getPixelBuffer()
Modified: trunk/Source/WebCore/html/HTMLMediaElement.cpp (277765 => 277766)
--- trunk/Source/WebCore/html/HTMLMediaElement.cpp 2021-05-20 00:25:44 UTC (rev 277765)
+++ trunk/Source/WebCore/html/HTMLMediaElement.cpp 2021-05-20 00:30:46 UTC (rev 277766)
@@ -7694,7 +7694,7 @@
}
if (m_videoFullscreenMode & VideoFullscreenModePictureInPicture)
return true;
-#if PLATFORM(MAC) && ENABLE(VIDEO_PRESENTATION_MODE)
+#if PLATFORM(COCOA) && ENABLE(VIDEO_PRESENTATION_MODE)
if (((m_videoFullscreenMode == VideoFullscreenModeStandard) || m_videoFullscreenStandby) && supportsPictureInPicture() && isPlaying())
return true;
#endif
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes