[Problem]
Resource conflict occurs when two players do prepare at the same time
which cause a black screen, because chromium replaces only the first
prepare with a preload when potential conflict is detected.
[Solution]
Call a Prepare MMPlayer only when ChooseDecoder is successfully completed.
Bug: https://jira-eu.sec.samsung.net/browse/VDWASM-2237
Signed-off-by: Kajetan Brzuszczak <k.brzuszczak@partner.samsung.com>
Change-Id: I5c95e99c8a685155fad2eceede0386f0d57acc89
LOG_ID(ERROR, GetPlayerId()) << "(" << static_cast<void*>(this)
<< "), GetMediaPlayerClient return null";
SetDisplayAtPausedState();
- return !content::HardwareResourceHelper::Get().IsDualDecoding();
+
+ // NOTE: Call SetPlayerPrepareAsync only when ChooseDecoder succeeded to avoid
+ // resource conflicts. ChooseDecoder calls it itself. HBBTV-only
+ return blink::IsHbbTV();
}
void MediaPlayerBridgeCapiTV::SetDisplayAtPausedState() {