[Problem]
When running WebRTC application in Browser, incoming stream
is not visible (black screen).
[Cause]
On Browser launcher no initial state for `SuspendResumeServiceImpl`
is being provided when application is run.
It results in setting `suspend_resume::State::SUSPENDED`
in `SwitchableVideoDecoderWrapper`, which prevents both HW and SW
decoders from being initialized.
For WRT launcher such implementation is provided in
`WRTNativeWindowTV::UpdateSuspendResumeState()` method.
[Solution]
Add state reporting for Browser when application is run / stopped
in `EWebView::Show()` and `EWebView::Hide()` methods.
Bug: https://jira-eu.sec.samsung.net/browse/VDWASM-1846
Change-Id: Ide5c8baa57d932aebb76a82dd3273db37951b7e2
Signed-off-by: Michal Jurkiewicz <m.jurkiewicz@samsung.com>
void EWebView::Show() {
evas_object_show(efl_main_layout_);
web_contents_->WasShown();
+
+ suspend_resume::NotifyStateChange(suspend_resume::State::RESUMED);
}
void EWebView::Hide() {
return;
}
web_contents_->WasHidden();
+
+ suspend_resume::NotifyStateChange(suspend_resume::State::SUSPENDED);
}
/* LCOV_EXCL_STOP */
void EWebView::SetViewAuthCallback(Ewk_View_Authentication_Callback callback,