Commit cb9827d6 authored by Edward Wang's avatar Edward Wang Committed by Jean-Baptiste Kempf

Control volume when playing videos

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 9c652047
......@@ -8,6 +8,7 @@ import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.content.res.Configuration;
import android.graphics.PixelFormat;
import android.media.AudioManager;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
......@@ -126,6 +127,8 @@ public class VideoPlayerActivity extends Activity {
EventManager em = EventManager.getIntance();
em.addHandler(eventHandler);
this.setVolumeControlStream(AudioManager.STREAM_MUSIC);
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR);
load();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment