FP2-1056:[ST_2][Gallery]Video doesn't stop playing when receiving a Wake-up alarm alert

When the alarm clock comes, pause the video.
When the call comes, pause the video.

Change-Id: I8c7f95ff2a3e41e66627a382d1884a60a67c57f7
diff --git a/src/com/android/gallery3d/app/MoviePlayer.java b/src/com/android/gallery3d/app/MoviePlayer.java
index cc08050..ec228b3 100644
--- a/src/com/android/gallery3d/app/MoviePlayer.java
+++ b/src/com/android/gallery3d/app/MoviePlayer.java
@@ -116,6 +116,14 @@
         }
     };
 
+    public boolean isPlaying() {
+        if (mVideoView != null) {
+            return mVideoView.isPlaying();
+        } else {
+            return false;
+        }
+    }
+
     public MoviePlayer(View rootView, final MovieActivity movieActivity,
             Uri videoUri, Bundle savedInstance, boolean canReplay) {
         mContext = movieActivity.getApplicationContext();
@@ -380,6 +388,11 @@
             playVideo();
         }
     }
+    public void onMoviePlayPause() {
+        if (mVideoView.isPlaying()) {
+            pauseVideo();
+        }
+    }
 
     @Override
     public void onSeekStart() {
@@ -549,4 +562,5 @@
         }
         return null;
     }
+
 }