[Android] TV: Launch media via PlaybackService

Geoffrey Métais git at videolan.org
Mon May 30 17:02:49 CEST 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon May 30 17:02:07 2016 +0200| [34c9453603380370b80a8d678eb5e839963460ed] | committer: Geoffrey Métais

TV: Launch media via PlaybackService

> https://code.videolan.org/videolan/vlc-android/commit/34c9453603380370b80a8d678eb5e839963460ed
---

 vlc-android/src/org/videolan/vlc/gui/tv/TvUtil.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/tv/TvUtil.java b/vlc-android/src/org/videolan/vlc/gui/tv/TvUtil.java
index 051e6fe..4c482dc 100644
--- a/vlc-android/src/org/videolan/vlc/gui/tv/TvUtil.java
+++ b/vlc-android/src/org/videolan/vlc/gui/tv/TvUtil.java
@@ -30,7 +30,6 @@ import android.view.View;
 import org.videolan.vlc.R;
 import org.videolan.vlc.gui.tv.audioplayer.AudioPlayerActivity;
 import org.videolan.vlc.gui.tv.browser.VerticalGridActivity;
-import org.videolan.vlc.gui.video.VideoPlayerActivity;
 import org.videolan.vlc.media.MediaUtils;
 import org.videolan.vlc.media.MediaWrapper;
 
@@ -49,7 +48,7 @@ public class TvUtil {
         if (item instanceof MediaWrapper) {
             MediaWrapper mediaWrapper = (MediaWrapper) item;
             if (mediaWrapper.getType() == MediaWrapper.TYPE_VIDEO) {
-                VideoPlayerActivity.start(activity, mediaWrapper.getUri(), MediaUtils.getMediaTitle(mediaWrapper));
+                MediaUtils.openMedia(activity, mediaWrapper);
             } else if (mediaWrapper.getType() == MediaWrapper.TYPE_AUDIO) {
                 showMediaDetail(activity, mediaWrapper);
             } else if (mediaWrapper.getType() == MediaWrapper.TYPE_DIR){



More information about the Android mailing list