[Android] PlayerController: add setAudioDigitalOutputEnabled
Thomas Guillem
git at videolan.org
Mon Mar 26 18:23:43 CEST 2018
vlc-android | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Mar 26 16:52:46 2018 +0200| [d68b95d310e2242c46f08ef12d57ac64ad6d78fe] | committer: Geoffrey Métais
PlayerController: add setAudioDigitalOutputEnabled
> https://code.videolan.org/videolan/vlc-android/commit/d68b95d310e2242c46f08ef12d57ac64ad6d78fe
---
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