[Android] Handle Captions key input

Geoffrey Métais git at videolan.org
Tue May 31 18:27:01 CEST 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue May 31 14:36:27 2016 +0200| [6a7f17c2d6e6a2862d4a32ae0555cb946257648a] | committer: Geoffrey Métais

Handle Captions key input

> https://code.videolan.org/videolan/vlc-android/commit/6a7f17c2d6e6a2862d4a32ae0555cb946257648a
---

 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 d4746df..ae75223 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1240,6 +1240,9 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
                 return true;
             } else
                 return false;
+        case KeyEvent.KEYCODE_CAPTIONS:
+            selectSubtitles();
+            return true;
         }
         return super.onKeyDown(keyCode, event);
     }



More information about the Android mailing list