Title: [208161] trunk/Source/WebCore
- Revision
- 208161
- Author
- [email protected]
- Date
- 2016-10-31 10:46:10 -0700 (Mon, 31 Oct 2016)
Log Message
Unreviewed build fix after r208151; _setPreventsSleepDuringVideoPlayback: only defined in non-simulator SDKs.
* platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
(WebCore::MediaPlayerPrivateAVFoundationObjC::createAVPlayer):
(WebCore::MediaPlayerPrivateAVFoundationObjC::setShouldDisableSleep):
* platform/spi/mac/AVFoundationSPI.h:
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (208160 => 208161)
--- trunk/Source/WebCore/ChangeLog 2016-10-31 17:26:36 UTC (rev 208160)
+++ trunk/Source/WebCore/ChangeLog 2016-10-31 17:46:10 UTC (rev 208161)
@@ -1,3 +1,12 @@
+2016-10-31 Jer Noble <[email protected]>
+
+ Unreviewed build fix after r208151; _setPreventsSleepDuringVideoPlayback: only defined in non-simulator SDKs.
+
+ * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
+ (WebCore::MediaPlayerPrivateAVFoundationObjC::createAVPlayer):
+ (WebCore::MediaPlayerPrivateAVFoundationObjC::setShouldDisableSleep):
+ * platform/spi/mac/AVFoundationSPI.h:
+
2016-10-31 Nan Wang <[email protected]>
AX: iOS Voiceover does not announce previously selected value from input type="date" form field
Modified: trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm (208160 => 208161)
--- trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm 2016-10-31 17:26:36 UTC (rev 208160)
+++ trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm 2016-10-31 17:46:10 UTC (rev 208161)
@@ -1049,7 +1049,7 @@
}
#endif
-#if PLATFORM(IOS)
+#if PLATFORM(IOS) && !PLATFORM(IOS_SIMULATOR)
setShouldDisableSleep(player()->shouldDisableSleep());
#endif
@@ -3181,7 +3181,7 @@
void MediaPlayerPrivateAVFoundationObjC::setShouldDisableSleep(bool flag)
{
-#if PLATFORM(IOS)
+#if PLATFORM(IOS) && !PLATFORM(IOS_SIMULATOR)
if (m_avPlayer && [m_avPlayer respondsToSelector:@selector(_setPreventsSleepDuringVideoPlayback:)])
[m_avPlayer _setPreventsSleepDuringVideoPlayback:flag];
#else
Modified: trunk/Source/WebCore/platform/spi/mac/AVFoundationSPI.h (208160 => 208161)
--- trunk/Source/WebCore/platform/spi/mac/AVFoundationSPI.h 2016-10-31 17:26:36 UTC (rev 208160)
+++ trunk/Source/WebCore/platform/spi/mac/AVFoundationSPI.h 2016-10-31 17:46:10 UTC (rev 208161)
@@ -82,12 +82,12 @@
@end
NS_ASSUME_NONNULL_END
-#if PLATFORM(IOS)
+#if PLATFORM(IOS) && !PLATFORM(IOS_SIMULATOR)
@interface AVPlayer (AVPlayerVideoSleepPrevention)
@property (nonatomic, getter=_preventsSleepDuringVideoPlayback, setter=_setPreventsSleepDuringVideoPlayback:) BOOL preventsSleepDuringVideoPlayback;
@end
-#endif // PLATFORM(IOS)
+#endif // PLATFORM(IOS) && !PLATFORM(IOS_SIMULATOR)
#if !PLATFORM(IOS)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes