haikuwebkit/LayoutTests/webrtc/receiver-track-should-stay-...

7 lines
101 B
Plaintext
Raw Permalink Normal View History

End a remote MediaStreamTrack if its source is ended https://bugs.webkit.org/show_bug.cgi?id=213074 Reviewed by Eric Carlson. Source/WebCore: Make remote audio/video source observers of their webrtc source. In case the webrtc source ends, end the source, thus its related tracks as well. This is covered by the above test. Test: webrtc/receiver-track-should-stay-live-even-if-receiver-is-inactive.html * platform/mediastream/RealtimeIncomingAudioSource.cpp: (WebCore::RealtimeIncomingAudioSource::RealtimeIncomingAudioSource): (WebCore::RealtimeIncomingAudioSource::~RealtimeIncomingAudioSource): (WebCore::RealtimeIncomingAudioSource::startProducingData): (WebCore::RealtimeIncomingAudioSource::stopProducingData): (WebCore::RealtimeIncomingAudioSource::OnChanged): * platform/mediastream/RealtimeIncomingAudioSource.h: * platform/mediastream/RealtimeIncomingVideoSource.cpp: (WebCore::RealtimeIncomingVideoSource::RealtimeIncomingVideoSource): (WebCore::RealtimeIncomingVideoSource::~RealtimeIncomingVideoSource): (WebCore::RealtimeIncomingVideoSource::startProducingData): (WebCore::RealtimeIncomingVideoSource::stopProducingData): (WebCore::RealtimeIncomingVideoSource::OnChanged): * platform/mediastream/RealtimeIncomingVideoSource.h: * platform/mediastream/RealtimeMediaSource.cpp: (WebCore::RealtimeMediaSource::requestToEnd): (WebCore::RealtimeMediaSource::end): * platform/mediastream/RealtimeMediaSource.h: LayoutTests: * webrtc/receiver-track-should-stay-live-even-if-receiver-is-inactive-expected.txt: Added. * webrtc/receiver-track-should-stay-live-even-if-receiver-is-inactive.html: Added. Canonical link: https://commits.webkit.org/225865@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@262905 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-06-11 17:14:07 +00:00
PASS Setup audio call
PASS Inactivate the audio transceiver
PASS Reactivate the audio transceiver
End a remote MediaStreamTrack if its source is ended https://bugs.webkit.org/show_bug.cgi?id=213074 Reviewed by Eric Carlson. Source/WebCore: Make remote audio/video source observers of their webrtc source. In case the webrtc source ends, end the source, thus its related tracks as well. This is covered by the above test. Test: webrtc/receiver-track-should-stay-live-even-if-receiver-is-inactive.html * platform/mediastream/RealtimeIncomingAudioSource.cpp: (WebCore::RealtimeIncomingAudioSource::RealtimeIncomingAudioSource): (WebCore::RealtimeIncomingAudioSource::~RealtimeIncomingAudioSource): (WebCore::RealtimeIncomingAudioSource::startProducingData): (WebCore::RealtimeIncomingAudioSource::stopProducingData): (WebCore::RealtimeIncomingAudioSource::OnChanged): * platform/mediastream/RealtimeIncomingAudioSource.h: * platform/mediastream/RealtimeIncomingVideoSource.cpp: (WebCore::RealtimeIncomingVideoSource::RealtimeIncomingVideoSource): (WebCore::RealtimeIncomingVideoSource::~RealtimeIncomingVideoSource): (WebCore::RealtimeIncomingVideoSource::startProducingData): (WebCore::RealtimeIncomingVideoSource::stopProducingData): (WebCore::RealtimeIncomingVideoSource::OnChanged): * platform/mediastream/RealtimeIncomingVideoSource.h: * platform/mediastream/RealtimeMediaSource.cpp: (WebCore::RealtimeMediaSource::requestToEnd): (WebCore::RealtimeMediaSource::end): * platform/mediastream/RealtimeMediaSource.h: LayoutTests: * webrtc/receiver-track-should-stay-live-even-if-receiver-is-inactive-expected.txt: Added. * webrtc/receiver-track-should-stay-live-even-if-receiver-is-inactive.html: Added. Canonical link: https://commits.webkit.org/225865@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@262905 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-06-11 17:14:07 +00:00