haikuwebkit/LayoutTests/media/video-background-playback-e...

34 lines
750 B
Plaintext
Raw Permalink Normal View History

Refine MediaSession interruptions https://bugs.webkit.org/show_bug.cgi?id=128125 Reviewed by Jer Noble. Source/WebCore: Test: media/video-background-playback.html * WebCore.exp.in: Export applicationWillEnterForeground and applicationWillEnterBackground for Internals. * html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::play): Ask the media session if playback is allowed instead of check to see if it is interrupted directly. (WebCore::HTMLMediaElement::pause): Ask the media session if pausing is allowed instead of check to see if it is interrupted directly. (WebCore::HTMLMediaElement::mediaType): Return media type based on media characteristics once the information is available. (WebCore::HTMLMediaElement::resumePlayback): New. * html/HTMLMediaElement.h: * html/HTMLMediaSession.cpp: (WebCore::restrictionName): New, use for logging only. (WebCore::HTMLMediaSession::addBehaviorRestriction): Log restriction changes. (WebCore::HTMLMediaSession::removeBehaviorRestriction): Ditto. * html/HTMLMediaSession.h: * platform/audio/MediaSession.cpp: (WebCore::stateName): New, used for logging. (WebCore::MediaSession::MediaSession): Don't cache client media type because it can change. (WebCore::MediaSession::setState): Log state changes. (WebCore::MediaSession::beginInterruption): Remember the current state in case we want to use it to restore state when the interruption ends. (WebCore::MediaSession::endInterruption): Resume playback if appropriate. (WebCore::MediaSession::clientWillBeginPlayback): Track the client's playback state. (WebCore::MediaSession::clientWillPausePlayback): Ditto. (WebCore::MediaSession::mediaType): Ask client for state. * platform/audio/MediaSession.h: * platform/audio/MediaSessionManager.cpp: (WebCore::MediaSessionManager::MediaSessionManager): m_interruptions -> m_interrupted. (WebCore::MediaSessionManager::beginInterruption): Don't assume interruptions are always balanced. (WebCore::MediaSessionManager::endInterruption): Ditto. (WebCore::MediaSessionManager::addSession): (WebCore::MediaSessionManager::applicationWillEnterBackground): Interrupt client if it is not allowed to play in the background. (WebCore::MediaSessionManager::applicationWillEnterForeground): End client interruption if it was stopped by an interruption. * platform/audio/MediaSessionManager.h: * platform/audio/ios/MediaSessionManagerIOS.h: * platform/audio/ios/MediaSessionManagerIOS.mm: (WebCore::MediaSessionManageriOS::~MediaSessionManageriOS): Clear the helper callback. (WebCore::MediaSessionManageriOS::resetRestrictions): Mark video as not allowed to play while the application is in the background. Register for application suspend/resume notifications. (-[WebMediaSessionHelper clearCallback]): Set _callback to nil. (-[WebMediaSessionHelper applicationWillEnterForeground:]): New, notify client of application state change. (-[WebMediaSessionHelper applicationWillResignActive:]): Ditto. * platform/audio/mac/AudioDestinationMac.h: Add resumePlayback. * testing/Internals.cpp: (WebCore::Internals::applicationWillEnterForeground): New, simulate application context switch. (WebCore::Internals::applicationWillEnterBackground): Ditto. (WebCore::Internals::setMediaSessionRestrictions): Add "BackgroundPlaybackNotPermitted" restriction. * testing/Internals.h: * testing/Internals.idl: Source/WebKit: * WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in: Export applicationWillEnterForeground and applicationWillEnterBackground for Internals. LayoutTests: * media/video-background-playback-expected.txt: Added. * media/video-background-playback.html: Added. * media/video-interruption-active-when-element-created-expected.txt: Removed. * media/video-interruption-active-when-element-created.html: Removed. * media/video-interruption-with-resume-allowing-play-expected.txt: * media/video-interruption-with-resume-allowing-play.html: * media/video-interruption-with-resume-not-allowing-play-expected.txt: * media/video-interruption-with-resume-not-allowing-play.html: Canonical link: https://commits.webkit.org/146196@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163390 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-04 19:09:34 +00:00
Test switching application state when <video> is not allowed to play in background.
Allow multiple playing videos on a page with 'autoplay' and 'playsinline' attributes https://bugs.webkit.org/show_bug.cgi?id=162366 <rdar://problem/28639600> Reviewed by Eric Carlson. Source/WebCore: Tests: media/video-concurrent-visible-playback.html media/video-multiple-concurrent-playback.html Separate out the concept of "video-only" from "video-with-audio" in PlatformMediaSession::MediaType, and only set the ConcurrentPlaybackNotPermitted restriction for "video-with-audio". This allows multiple silent video elements to play back simultaneously. However, the bug in question also shows bad behavior when both concurrent playback and invisible playback are not allowed. Namely, an invisible element will attempt to autoplay, interrupt visible elements, and then fail to play due to it's non-visibility. Add an extra check to canTransitionFromAutoplayToPlay() which asks the session if autoplay is allowed (which will return false if the element is not visible). * html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::canTransitionFromAutoplayToPlay): (WebCore::HTMLMediaElement::mediaType): (WebCore::HTMLMediaElement::presentationType): (WebCore::HTMLMediaElement::updateShouldAutoplay): (WebCore::mediaElementIsAllowedToAutoplay): Deleted. * html/MediaElementSession.cpp: (WebCore::MediaElementSession::autoplayPermitted): * html/MediaElementSession.h: * platform/audio/PlatformMediaSession.h: * platform/audio/ios/MediaSessionManagerIOS.mm: (WebCore::MediaSessionManageriOS::resetRestrictions): * testing/Internals.cpp: (WebCore::Internals::setMediaSessionRestrictions): LayoutTests: * media/content/test-video-only.mp4: Added. * media/non-existent-video-playback-interrupted-expected.txt: * media/non-existent-video-playback-interrupted.html: * media/video-background-playback-expected.txt: * media/video-background-playback.html: * media/video-background-tab-playback-expected.txt: * media/video-background-tab-playback.html: * media/video-concurrent-playback-expected.txt: * media/video-concurrent-playback.html: * media/video-concurrent-visible-playback-expected.txt: Added. * media/video-concurrent-visible-playback.html: Added. * media/video-multiple-concurrent-playback-expected.txt: Added. * media/video-multiple-concurrent-playback.html: Added. * media/video-playback-interrupted-expected.txt: * media/video-playback-interrupted.html: * media/video-restricted-invisible-autoplay-not-allowed.html: Canonical link: https://commits.webkit.org/181931@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@208149 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-10-31 16:36:00 +00:00
RUN(internals.setMediaSessionRestrictions('videoaudio', 'BackgroundProcessPlaybackRestricted'))
Refine MediaSession interruptions https://bugs.webkit.org/show_bug.cgi?id=128125 Reviewed by Jer Noble. Source/WebCore: Test: media/video-background-playback.html * WebCore.exp.in: Export applicationWillEnterForeground and applicationWillEnterBackground for Internals. * html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::play): Ask the media session if playback is allowed instead of check to see if it is interrupted directly. (WebCore::HTMLMediaElement::pause): Ask the media session if pausing is allowed instead of check to see if it is interrupted directly. (WebCore::HTMLMediaElement::mediaType): Return media type based on media characteristics once the information is available. (WebCore::HTMLMediaElement::resumePlayback): New. * html/HTMLMediaElement.h: * html/HTMLMediaSession.cpp: (WebCore::restrictionName): New, use for logging only. (WebCore::HTMLMediaSession::addBehaviorRestriction): Log restriction changes. (WebCore::HTMLMediaSession::removeBehaviorRestriction): Ditto. * html/HTMLMediaSession.h: * platform/audio/MediaSession.cpp: (WebCore::stateName): New, used for logging. (WebCore::MediaSession::MediaSession): Don't cache client media type because it can change. (WebCore::MediaSession::setState): Log state changes. (WebCore::MediaSession::beginInterruption): Remember the current state in case we want to use it to restore state when the interruption ends. (WebCore::MediaSession::endInterruption): Resume playback if appropriate. (WebCore::MediaSession::clientWillBeginPlayback): Track the client's playback state. (WebCore::MediaSession::clientWillPausePlayback): Ditto. (WebCore::MediaSession::mediaType): Ask client for state. * platform/audio/MediaSession.h: * platform/audio/MediaSessionManager.cpp: (WebCore::MediaSessionManager::MediaSessionManager): m_interruptions -> m_interrupted. (WebCore::MediaSessionManager::beginInterruption): Don't assume interruptions are always balanced. (WebCore::MediaSessionManager::endInterruption): Ditto. (WebCore::MediaSessionManager::addSession): (WebCore::MediaSessionManager::applicationWillEnterBackground): Interrupt client if it is not allowed to play in the background. (WebCore::MediaSessionManager::applicationWillEnterForeground): End client interruption if it was stopped by an interruption. * platform/audio/MediaSessionManager.h: * platform/audio/ios/MediaSessionManagerIOS.h: * platform/audio/ios/MediaSessionManagerIOS.mm: (WebCore::MediaSessionManageriOS::~MediaSessionManageriOS): Clear the helper callback. (WebCore::MediaSessionManageriOS::resetRestrictions): Mark video as not allowed to play while the application is in the background. Register for application suspend/resume notifications. (-[WebMediaSessionHelper clearCallback]): Set _callback to nil. (-[WebMediaSessionHelper applicationWillEnterForeground:]): New, notify client of application state change. (-[WebMediaSessionHelper applicationWillResignActive:]): Ditto. * platform/audio/mac/AudioDestinationMac.h: Add resumePlayback. * testing/Internals.cpp: (WebCore::Internals::applicationWillEnterForeground): New, simulate application context switch. (WebCore::Internals::applicationWillEnterBackground): Ditto. (WebCore::Internals::setMediaSessionRestrictions): Add "BackgroundPlaybackNotPermitted" restriction. * testing/Internals.h: * testing/Internals.idl: Source/WebKit: * WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in: Export applicationWillEnterForeground and applicationWillEnterBackground for Internals. LayoutTests: * media/video-background-playback-expected.txt: Added. * media/video-background-playback.html: Added. * media/video-interruption-active-when-element-created-expected.txt: Removed. * media/video-interruption-active-when-element-created.html: Removed. * media/video-interruption-with-resume-allowing-play-expected.txt: * media/video-interruption-with-resume-allowing-play.html: * media/video-interruption-with-resume-not-allowing-play-expected.txt: * media/video-interruption-with-resume-not-allowing-play.html: Canonical link: https://commits.webkit.org/146196@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163390 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-04 19:09:34 +00:00
EVENT(canplaythrough)
EVENT(canplaythrough)
RUN(audio.play())
RUN(video.play())
EVENT(playing)
EVENT(playing)
** Simulate switch to background, video should pause.
[iOS] Do not pause playing video when application resigns active state. https://bugs.webkit.org/show_bug.cgi?id=173474 Reviewed by Tim Horton. Source/WebCore: Test: media/video-inactive-playback.html Separate out the concept of "inactive" playback from "process background" playback. Move the implementation of applicationDidEnterBackground() from MediaSessionManagerIOS into it's superclass, PlatformMediaSessionManager, and add a new set of restrictions for "InactiveProcessPlaybackRestricted" and "SuspendedUnderLockPlaybackRestricted". Leave the default restriction set for iOS as "BackgroundProcessPlaybackRestricted" and "SuspendedUnderLockPlaybackRestricted", to preserve the existing behavior of suspending playback when switching apps or when locking the device. * platform/audio/PlatformMediaSession.cpp: (WebCore::interruptionName): * platform/audio/PlatformMediaSession.h: * platform/audio/PlatformMediaSessionManager.cpp: (WebCore::PlatformMediaSessionManager::applicationWillBecomeInactive): (WebCore::PlatformMediaSessionManager::applicationDidBecomeActive): (WebCore::PlatformMediaSessionManager::applicationDidEnterBackground): (WebCore::PlatformMediaSessionManager::applicationWillEnterForeground): (WebCore::PlatformMediaSessionManager::applicationWillEnterBackground): Deleted. (WebCore::PlatformMediaSessionManager::applicationDidEnterForeground): Deleted. * platform/audio/PlatformMediaSessionManager.h: * platform/audio/ios/MediaSessionManagerIOS.h: * platform/audio/ios/MediaSessionManagerIOS.mm: (WebCore::MediaSessionManageriOS::resetRestrictions): (-[WebMediaSessionHelper applicationDidBecomeActive:]): (-[WebMediaSessionHelper applicationWillResignActive:]): (WebCore::MediaSessionManageriOS::applicationDidEnterBackground): Deleted. (WebCore::MediaSessionManageriOS::applicationWillEnterForeground): Deleted. * testing/Internals.cpp: (WebCore::Internals::applicationWillBecomeInactive): (WebCore::Internals::applicationDidBecomeActive): (WebCore::Internals::applicationWillEnterForeground): (WebCore::Internals::applicationDidEnterBackground): (WebCore::Internals::setMediaSessionRestrictions): (WebCore::Internals::applicationDidEnterForeground): Deleted. (WebCore::Internals::applicationWillEnterBackground): Deleted. * testing/Internals.h: * testing/Internals.idl: LayoutTests: * media/video-background-playback-expected.txt: * media/video-background-playback.html: * media/video-background-tab-playback-expected.txt: * media/video-background-tab-playback.html: * media/video-inactive-playback-expected.txt: Added. * media/video-inactive-playback.html: Added. Canonical link: https://commits.webkit.org/190368@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@218417 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-06-16 21:59:23 +00:00
RUN(internals.applicationDidEnterBackground())
Refine MediaSession interruptions https://bugs.webkit.org/show_bug.cgi?id=128125 Reviewed by Jer Noble. Source/WebCore: Test: media/video-background-playback.html * WebCore.exp.in: Export applicationWillEnterForeground and applicationWillEnterBackground for Internals. * html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::play): Ask the media session if playback is allowed instead of check to see if it is interrupted directly. (WebCore::HTMLMediaElement::pause): Ask the media session if pausing is allowed instead of check to see if it is interrupted directly. (WebCore::HTMLMediaElement::mediaType): Return media type based on media characteristics once the information is available. (WebCore::HTMLMediaElement::resumePlayback): New. * html/HTMLMediaElement.h: * html/HTMLMediaSession.cpp: (WebCore::restrictionName): New, use for logging only. (WebCore::HTMLMediaSession::addBehaviorRestriction): Log restriction changes. (WebCore::HTMLMediaSession::removeBehaviorRestriction): Ditto. * html/HTMLMediaSession.h: * platform/audio/MediaSession.cpp: (WebCore::stateName): New, used for logging. (WebCore::MediaSession::MediaSession): Don't cache client media type because it can change. (WebCore::MediaSession::setState): Log state changes. (WebCore::MediaSession::beginInterruption): Remember the current state in case we want to use it to restore state when the interruption ends. (WebCore::MediaSession::endInterruption): Resume playback if appropriate. (WebCore::MediaSession::clientWillBeginPlayback): Track the client's playback state. (WebCore::MediaSession::clientWillPausePlayback): Ditto. (WebCore::MediaSession::mediaType): Ask client for state. * platform/audio/MediaSession.h: * platform/audio/MediaSessionManager.cpp: (WebCore::MediaSessionManager::MediaSessionManager): m_interruptions -> m_interrupted. (WebCore::MediaSessionManager::beginInterruption): Don't assume interruptions are always balanced. (WebCore::MediaSessionManager::endInterruption): Ditto. (WebCore::MediaSessionManager::addSession): (WebCore::MediaSessionManager::applicationWillEnterBackground): Interrupt client if it is not allowed to play in the background. (WebCore::MediaSessionManager::applicationWillEnterForeground): End client interruption if it was stopped by an interruption. * platform/audio/MediaSessionManager.h: * platform/audio/ios/MediaSessionManagerIOS.h: * platform/audio/ios/MediaSessionManagerIOS.mm: (WebCore::MediaSessionManageriOS::~MediaSessionManageriOS): Clear the helper callback. (WebCore::MediaSessionManageriOS::resetRestrictions): Mark video as not allowed to play while the application is in the background. Register for application suspend/resume notifications. (-[WebMediaSessionHelper clearCallback]): Set _callback to nil. (-[WebMediaSessionHelper applicationWillEnterForeground:]): New, notify client of application state change. (-[WebMediaSessionHelper applicationWillResignActive:]): Ditto. * platform/audio/mac/AudioDestinationMac.h: Add resumePlayback. * testing/Internals.cpp: (WebCore::Internals::applicationWillEnterForeground): New, simulate application context switch. (WebCore::Internals::applicationWillEnterBackground): Ditto. (WebCore::Internals::setMediaSessionRestrictions): Add "BackgroundPlaybackNotPermitted" restriction. * testing/Internals.h: * testing/Internals.idl: Source/WebKit: * WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in: Export applicationWillEnterForeground and applicationWillEnterBackground for Internals. LayoutTests: * media/video-background-playback-expected.txt: Added. * media/video-background-playback.html: Added. * media/video-interruption-active-when-element-created-expected.txt: Removed. * media/video-interruption-active-when-element-created.html: Removed. * media/video-interruption-with-resume-allowing-play-expected.txt: * media/video-interruption-with-resume-allowing-play.html: * media/video-interruption-with-resume-not-allowing-play-expected.txt: * media/video-interruption-with-resume-not-allowing-play.html: Canonical link: https://commits.webkit.org/146196@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163390 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-04 19:09:34 +00:00
EVENT(pause)
** 100ms timer fired...
EXPECTED (video.paused == 'true') OK
EXPECTED (audio.paused == 'false') OK
** Simulate switch back to foreground, video should resume.
[iOS] Do not pause playing video when application resigns active state. https://bugs.webkit.org/show_bug.cgi?id=173474 Reviewed by Tim Horton. Source/WebCore: Test: media/video-inactive-playback.html Separate out the concept of "inactive" playback from "process background" playback. Move the implementation of applicationDidEnterBackground() from MediaSessionManagerIOS into it's superclass, PlatformMediaSessionManager, and add a new set of restrictions for "InactiveProcessPlaybackRestricted" and "SuspendedUnderLockPlaybackRestricted". Leave the default restriction set for iOS as "BackgroundProcessPlaybackRestricted" and "SuspendedUnderLockPlaybackRestricted", to preserve the existing behavior of suspending playback when switching apps or when locking the device. * platform/audio/PlatformMediaSession.cpp: (WebCore::interruptionName): * platform/audio/PlatformMediaSession.h: * platform/audio/PlatformMediaSessionManager.cpp: (WebCore::PlatformMediaSessionManager::applicationWillBecomeInactive): (WebCore::PlatformMediaSessionManager::applicationDidBecomeActive): (WebCore::PlatformMediaSessionManager::applicationDidEnterBackground): (WebCore::PlatformMediaSessionManager::applicationWillEnterForeground): (WebCore::PlatformMediaSessionManager::applicationWillEnterBackground): Deleted. (WebCore::PlatformMediaSessionManager::applicationDidEnterForeground): Deleted. * platform/audio/PlatformMediaSessionManager.h: * platform/audio/ios/MediaSessionManagerIOS.h: * platform/audio/ios/MediaSessionManagerIOS.mm: (WebCore::MediaSessionManageriOS::resetRestrictions): (-[WebMediaSessionHelper applicationDidBecomeActive:]): (-[WebMediaSessionHelper applicationWillResignActive:]): (WebCore::MediaSessionManageriOS::applicationDidEnterBackground): Deleted. (WebCore::MediaSessionManageriOS::applicationWillEnterForeground): Deleted. * testing/Internals.cpp: (WebCore::Internals::applicationWillBecomeInactive): (WebCore::Internals::applicationDidBecomeActive): (WebCore::Internals::applicationWillEnterForeground): (WebCore::Internals::applicationDidEnterBackground): (WebCore::Internals::setMediaSessionRestrictions): (WebCore::Internals::applicationDidEnterForeground): Deleted. (WebCore::Internals::applicationWillEnterBackground): Deleted. * testing/Internals.h: * testing/Internals.idl: LayoutTests: * media/video-background-playback-expected.txt: * media/video-background-playback.html: * media/video-background-tab-playback-expected.txt: * media/video-background-tab-playback.html: * media/video-inactive-playback-expected.txt: Added. * media/video-inactive-playback.html: Added. Canonical link: https://commits.webkit.org/190368@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@218417 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-06-16 21:59:23 +00:00
RUN(internals.applicationWillEnterForeground())
Refine MediaSession interruptions https://bugs.webkit.org/show_bug.cgi?id=128125 Reviewed by Jer Noble. Source/WebCore: Test: media/video-background-playback.html * WebCore.exp.in: Export applicationWillEnterForeground and applicationWillEnterBackground for Internals. * html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::play): Ask the media session if playback is allowed instead of check to see if it is interrupted directly. (WebCore::HTMLMediaElement::pause): Ask the media session if pausing is allowed instead of check to see if it is interrupted directly. (WebCore::HTMLMediaElement::mediaType): Return media type based on media characteristics once the information is available. (WebCore::HTMLMediaElement::resumePlayback): New. * html/HTMLMediaElement.h: * html/HTMLMediaSession.cpp: (WebCore::restrictionName): New, use for logging only. (WebCore::HTMLMediaSession::addBehaviorRestriction): Log restriction changes. (WebCore::HTMLMediaSession::removeBehaviorRestriction): Ditto. * html/HTMLMediaSession.h: * platform/audio/MediaSession.cpp: (WebCore::stateName): New, used for logging. (WebCore::MediaSession::MediaSession): Don't cache client media type because it can change. (WebCore::MediaSession::setState): Log state changes. (WebCore::MediaSession::beginInterruption): Remember the current state in case we want to use it to restore state when the interruption ends. (WebCore::MediaSession::endInterruption): Resume playback if appropriate. (WebCore::MediaSession::clientWillBeginPlayback): Track the client's playback state. (WebCore::MediaSession::clientWillPausePlayback): Ditto. (WebCore::MediaSession::mediaType): Ask client for state. * platform/audio/MediaSession.h: * platform/audio/MediaSessionManager.cpp: (WebCore::MediaSessionManager::MediaSessionManager): m_interruptions -> m_interrupted. (WebCore::MediaSessionManager::beginInterruption): Don't assume interruptions are always balanced. (WebCore::MediaSessionManager::endInterruption): Ditto. (WebCore::MediaSessionManager::addSession): (WebCore::MediaSessionManager::applicationWillEnterBackground): Interrupt client if it is not allowed to play in the background. (WebCore::MediaSessionManager::applicationWillEnterForeground): End client interruption if it was stopped by an interruption. * platform/audio/MediaSessionManager.h: * platform/audio/ios/MediaSessionManagerIOS.h: * platform/audio/ios/MediaSessionManagerIOS.mm: (WebCore::MediaSessionManageriOS::~MediaSessionManageriOS): Clear the helper callback. (WebCore::MediaSessionManageriOS::resetRestrictions): Mark video as not allowed to play while the application is in the background. Register for application suspend/resume notifications. (-[WebMediaSessionHelper clearCallback]): Set _callback to nil. (-[WebMediaSessionHelper applicationWillEnterForeground:]): New, notify client of application state change. (-[WebMediaSessionHelper applicationWillResignActive:]): Ditto. * platform/audio/mac/AudioDestinationMac.h: Add resumePlayback. * testing/Internals.cpp: (WebCore::Internals::applicationWillEnterForeground): New, simulate application context switch. (WebCore::Internals::applicationWillEnterBackground): Ditto. (WebCore::Internals::setMediaSessionRestrictions): Add "BackgroundPlaybackNotPermitted" restriction. * testing/Internals.h: * testing/Internals.idl: Source/WebKit: * WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in: Export applicationWillEnterForeground and applicationWillEnterBackground for Internals. LayoutTests: * media/video-background-playback-expected.txt: Added. * media/video-background-playback.html: Added. * media/video-interruption-active-when-element-created-expected.txt: Removed. * media/video-interruption-active-when-element-created.html: Removed. * media/video-interruption-with-resume-allowing-play-expected.txt: * media/video-interruption-with-resume-allowing-play.html: * media/video-interruption-with-resume-not-allowing-play-expected.txt: * media/video-interruption-with-resume-not-allowing-play.html: Canonical link: https://commits.webkit.org/146196@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163390 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-04 19:09:34 +00:00
EVENT(playing)
** 100ms timer fired...
EXPECTED (video.paused == 'false') OK
EXPECTED (audio.paused == 'false') OK
END OF TEST