Commit 34c94536 authored by Geoffrey Métais's avatar Geoffrey Métais

TV: Launch media via PlaybackService

parent 85def654
......@@ -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){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment