[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>
void StreamPlayerManagerImpl::RenderWidgetHostDestroyed(
content::RenderWidgetHost* rwh) {
LOG_ID(INFO, this);
+ RenderWidgetHostVisibilityChanged(rwh, false);
hosts_.erase(rwh);
}