[Android] Support for Dual Audio
Jean-Baptiste Kempf
git at videolan.org
Mon Jun 9 15:43:44 CEST 2014
vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Jun 9 15:36:18 2014 +0200| [bcc21d650dc03079a92adde17a418cfb50587478] | committer: Jean-Baptiste Kempf
Support for Dual Audio
This should be harmless for other devices.
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=bcc21d650dc03079a92adde17a418cfb50587478
---
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index c34c4a1..00f117d 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -492,6 +492,7 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
Log.i(TAG, "Dismissing presentation because the activity is no longer visible.");
mPresentation.dismiss();
mPresentation = null;
+ mAudioManager.setParameters("bgm_state=false");
}
}
@@ -2045,6 +2046,7 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
mPresentation.setOnDismissListener(mOnDismissListener);
try {
mPresentation.show();
+ mAudioManager.setParameters("bgm_state=true");
} catch (WindowManager.InvalidDisplayException ex) {
Log.w(TAG, "Couldn't show presentation! Display was removed in "
+ "the meantime.", ex);
@@ -2066,6 +2068,7 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
finish(); //TODO restore the video on the new display instead of closing
if (mPresentation != null) mPresentation.dismiss();
mPresentation = null;
+ mAudioManager.setParameters("bgm_state=false");
}
/**
More information about the Android
mailing list