SERXIONE-1363: nplb SbMediaCanPlayMimeAndKeySystem validate performance failure Reason for change: key/mime type caching enabled. Test Procedure: refer ticket. Risks: None Priority: P1 Signed-off-by: sramul630 <sunil_ramulu@comcast.com> Change-Id: Ic090fcf1d3fa80c122b9f55a19a9e80f28c32f67
diff --git a/src/third_party/starboard/rdk/shared/application_rdk.cc b/src/third_party/starboard/rdk/shared/application_rdk.cc index 9f23543..a654823 100644 --- a/src/third_party/starboard/rdk/shared/application_rdk.cc +++ b/src/third_party/starboard/rdk/shared/application_rdk.cc
@@ -34,7 +34,8 @@ #include "starboard/event.h" #include "starboard/speech_synthesis.h" #include "starboard/shared/starboard/audio_sink/audio_sink_internal.h" - +#include "starboard/shared/starboard/media/key_system_supportability_cache.h" +#include "starboard/shared/starboard/media/mime_supportability_cache.h" #include "third_party/starboard/rdk/shared/window/window_internal.h" #include "third_party/starboard/rdk/shared/log_override.h" @@ -128,6 +129,10 @@ SbAudioSinkPrivate::Initialize(); libcobalt_api::Initialize(); + using ::starboard::shared::starboard::media::KeySystemSupportabilityCache; + using ::starboard::shared::starboard::media::MimeSupportabilityCache; + MimeSupportabilityCache::GetInstance()->SetCacheEnabled(true); + KeySystemSupportabilityCache::GetInstance()->SetCacheEnabled(true); } void Application::Teardown() {