[M94 Migration][DA] Delete GetSoundMode condition in DA feature. 00/292300/2
authorK.Y. Lee <k-y.lee@samsung.com>
Fri, 18 Sep 2020 08:35:03 +0000 (17:35 +0900)
committerBot Blink <blinkbot@samsung.com>
Tue, 9 May 2023 00:25:56 +0000 (00:25 +0000)
Problem: While Music is playing in Web application,
         Launch the browser and play some videos in
 web site like Youtube and Naver.
         The Webapp's player keeps playing and
 Browser's player is also playing.

DA product feature has deleted this condition for
DA sound focus policy.on AcquireSoundFocus and ReleaseSoundFocus
function, some conditions exist for validation.
Among these conditions, GetSoundMode function for checking sound,
mode API is not supported in DA feature.
So delete this condition in DA feature.

Ref: https://review.tizen.org/gerrit/#/c/244421/
Change-Id: I685ec72868747cb9a3201e6a21dd321da85d5204
Signed-off-by: K.Y. Lee <k-y.lee@samsung.com>
tizen_src/chromium_impl/media/base/tizen/sound_focus_manager.cc

index 0ef4784f88b9b9c8eea5db9b50dab2cf6ea2bf10..83098e4cf33c3c745271e874a4e5fde2a066501a 100644 (file)
@@ -303,7 +303,11 @@ void SoundFocusManager::AcquireSoundFocus() {
 }
 
 void SoundFocusManager::ReleaseSoundFocus() {
+#if defined(OS_TIZEN_DA_PRODUCT)
+  if (!stream_info_ || !IsWebMediaAcquiredFocus())
+#else
   if (!stream_info_ || (GetSoundMode() == false) || !IsWebMediaAcquiredFocus())
+#endif
     return;
 
   int error =