Returning PiP'd video to fullscreen while playing leaves video muted.
authorjer.noble@apple.com <jer.noble@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 29 Jun 2018 17:15:08 +0000 (17:15 +0000)
committerjer.noble@apple.com <jer.noble@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 29 Jun 2018 17:15:08 +0000 (17:15 +0000)
commit78fafb78399517a86cb9111e3cd6324aa2c5bb6e
tree2782cce65a918ccd5e3542f85bd593a827481a09
parent7c5af86d2d83b539b842a9847a37132681bf6283
Returning PiP'd video to fullscreen while playing leaves video muted.
https://bugs.webkit.org/show_bug.cgi?id=187181
<rdar://problem/41408335>

Reviewed by Eric Carlson.

Source/WebCore:

Test: media/picture-in-picture-interruption.html

Don't reset the media session's state at the end of an interruption if it wasn't changed an the beginning of one.

* platform/audio/PlatformMediaSession.cpp:
(WebCore::PlatformMediaSession::endInterruption):
* testing/Internals.cpp:
(WebCore::Internals::mediaSessionState):
* testing/Internals.h:
* testing/Internals.idl:

LayoutTests:

* media/picture-in-picture-interruption-expected.txt: Added.
* media/picture-in-picture-interruption.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@233360 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/media/picture-in-picture-interruption-expected.txt [new file with mode: 0644]
LayoutTests/media/picture-in-picture-interruption.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/platform/audio/PlatformMediaSession.cpp
Source/WebCore/testing/Internals.cpp
Source/WebCore/testing/Internals.h
Source/WebCore/testing/Internals.idl