[Android] Delay controls for remote view
Geoffrey Métais
git at videolan.org
Fri Apr 10 11:31:53 CEST 2015
vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Apr 10 11:31:19 2015 +0200| [c89c095d2d3f7ee66d9261d4341dfb855cd1a22d] | committer: Geoffrey Métais
Delay controls for remote view
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=c89c095d2d3f7ee66d9261d4341dfb855cd1a22d
---
vlc-android/res/layout/player_remote_control.xml | 20 ++++++++++++++++++++
.../vlc/gui/video/VideoPlayerActivity.java | 2 ++
2 files changed, 22 insertions(+)
diff --git a/vlc-android/res/layout/player_remote_control.xml b/vlc-android/res/layout/player_remote_control.xml
index 682965f..3300cb7 100644
--- a/vlc-android/res/layout/player_remote_control.xml
+++ b/vlc-android/res/layout/player_remote_control.xml
@@ -81,6 +81,26 @@
android:textSize="20sp" />
</RelativeLayout>
+ <ImageView
+ android:id="@+id/player_delay_minus"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginRight="5dp"
+ android:layout_above="@+id/progress_overlay"
+ android:layout_alignParentRight="true"
+ android:src="@drawable/ic_minus_circle"
+ android:visibility="invisible"/>
+ <ImageView
+ android:id="@+id/player_delay_plus"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="10dp"
+ android:layout_marginRight="5dp"
+ android:layout_above="@+id/player_delay_minus"
+ android:layout_alignParentRight="true"
+ android:src="@drawable/ic_plus_circle"
+ android:visibility="invisible"/>
+
<include layout="@layout/player_hud" />
</RelativeLayout>
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 7e4b095..bc2d07a 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1072,6 +1072,7 @@ public class VideoPlayerActivity extends ActionBarActivity implements IVideoPlay
}
public void showDelayControls(){
+ showOverlayTimeout(OVERLAY_INFINITE);
mDelayMinus.setOnClickListener(mAudioDelayListener);
mDelayPlus.setOnClickListener(mAudioDelayListener);
mDelayMinus.setVisibility(View.VISIBLE);
@@ -1096,6 +1097,7 @@ public class VideoPlayerActivity extends ActionBarActivity implements IVideoPlay
@Override
public void endDelaySetting() {
+ hideOverlay(true);
mDelay = DelayState.OFF;
mDelayMinus.setOnClickListener(null);
mDelayPlus.setOnClickListener(null);
More information about the Android
mailing list