[Android] PlayerController: add setAudioDigitalOutputEnabled

Thomas Guillem git at videolan.org
Fri Mar 30 16:51:28 CEST 2018


vlc-android | branch: 3.0.x | Thomas Guillem <thomas at gllm.fr> | Mon Mar 26 16:52:46 2018 +0200| [4ca7102a7efabcf0cbd4f2f60c629cc35e55e809] | committer: Geoffrey Métais

PlayerController: add setAudioDigitalOutputEnabled

(cherry picked from commit d68b95d310e2242c46f08ef12d57ac64ad6d78fe)

> https://code.videolan.org/videolan/vlc-android/commit/4ca7102a7efabcf0cbd4f2f60c629cc35e55e809
---

 vlc-android/src/org/videolan/vlc/PlaybackService.java      | 5 +++++
 vlc-android/src/org/videolan/vlc/media/PlayerController.kt | 2 ++
 2 files changed, 7 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index 6aeee4ba3..44c18d9e6 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -1726,6 +1726,11 @@ public class PlaybackService extends MediaBrowserServiceCompat{
         return playlistManager.getPlayer().setAudioTrack(index);
     }
 
+    @MainThread
+    public boolean setAudioDigitalOutputEnabled(boolean enabled) {
+        return playlistManager.getPlayer().setAudioDigitalOutputEnabled(enabled);
+    }
+
     @MainThread
     public boolean setVideoTrack(int index) {
         return playlistManager.getPlayer().setVideoTrack(index);
diff --git a/vlc-android/src/org/videolan/vlc/media/PlayerController.kt b/vlc-android/src/org/videolan/vlc/media/PlayerController.kt
index a98a00a1b..42118bf25 100644
--- a/vlc-android/src/org/videolan/vlc/media/PlayerController.kt
+++ b/vlc-android/src/org/videolan/vlc/media/PlayerController.kt
@@ -123,6 +123,8 @@ class PlayerController : IVLCVout.Callback, MediaPlayer.EventListener {
 
     fun setAudioTrack(index: Int) = mediaplayer.setAudioTrack(index)
 
+    fun setAudioDigitalOutputEnabled(enabled: Boolean) = mediaplayer.setAudioDigitalOutputEnabled(enabled)
+
     fun getAudioDelay() = mediaplayer.audioDelay
 
     fun getSpuDelay() = mediaplayer.spuDelay



More information about the Android mailing list