[VIDEO-PLAYER][TSAM-6364]Resolved Sound manager related errors 30/79530/1
authoranshu.kumar <anshu.kumar@samsung.com>
Mon, 11 Jul 2016 15:04:10 +0000 (20:34 +0530)
committeranshu.kumar <anshu.kumar@samsung.com>
Mon, 11 Jul 2016 15:04:10 +0000 (20:34 +0530)
Change-Id: I9f319e49f4404ec614841ab11ad2ab6e4bee5c72
Signed-off-by: anshu.kumar <anshu.kumar@samsung.com>
playview/src/core/vp-sound.c

index 595b0e5..e5cdbb7 100644 (file)
@@ -50,6 +50,9 @@ void vp_player_focus_callback(sound_stream_info_h stream_info, sound_stream_focu
                        if (pPlayView->reacquire_state == EINA_TRUE) {
                                sound_manager_set_focus_reacquisition(pPlayView->stream_info, EINA_FALSE);
                        }
+                       if ((reason_for_change == SOUND_STREAM_FOCUS_CHANGED_BY_MEDIA) && (!strcmp(additional_info, "music_playing"))) {
+                               vp_play_normal_view_pause_player(pPlayView);
+                       }
                }
        } else {
                vp_play_normal_view_play_player(pPlayView);