[WebRTC][GameStreaming] Solve issue with no audio after application exit 52/319252/1 tizen_7.0
authorMichal Jurkiewicz <m.jurkiewicz@samsung.com>
Wed, 5 Feb 2025 07:20:47 +0000 (08:20 +0100)
committerm.jurkiewicz <m.jurkiewicz@samsung.com>
Thu, 6 Feb 2025 09:51:19 +0000 (09:51 +0000)
[Problem]
No audio in TVPlus after GameStreaming session was ended.

[Cause]
StreamAudioPlayerImpl does not close ESPlusPlayer instance.
It is caused by the fact, that StreamAudioPlayerImpl has not been
properly notified about application end.
As a result, audio volume is not returned to default value (100).

[Solution]
Notify `StreamPlayer[Audio|Video]Impl` classes about
RenderWidgetHost destruction by changing their visibility to false.
It will suspend these classes, which will result in closing
ESPlusPlayer instances associated with them, which will restore audio
volume to default value (100).

Bug: https://jira-eu.sec.samsung.net/browse/VDWASM-2225
Change-Id: I5d1ef8a45ea82fe069be5d9f77cfe39dfe2d7a1b
Signed-off-by: Michal Jurkiewicz <m.jurkiewicz@samsung.com>
tizen_src/chromium_impl/media/filters/tizen/stream_player_manager_impl.cc

index d8b32b638d887dbf42913cd3369bdd428857b6db..aab604da1b8843c5f0dd05b87631bf634e0b96d2 100644 (file)
@@ -214,6 +214,7 @@ void StreamPlayerManagerImpl::RenderWidgetHostVisibilityChanged(
 void StreamPlayerManagerImpl::RenderWidgetHostDestroyed(
     content::RenderWidgetHost* rwh) {
   LOG_ID(INFO, this);
+  RenderWidgetHostVisibilityChanged(rwh, false);
   hosts_.erase(rwh);
 }