Commit d4fef85d authored by Geoffrey Métais's avatar Geoffrey Métais

playAudioList helper method

parent 1ed5df99
......@@ -26,12 +26,14 @@ import android.net.Uri;
import android.os.Parcelable;
import android.support.v17.leanback.widget.Row;
import org.videolan.vlc.gui.tv.browser.SortedBrowserFragment;
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;
import java.util.ArrayList;
public class TvUtil {
......@@ -67,4 +69,11 @@ public class TvUtil {
intent.setData(uri);
activity.startActivity(intent);
}
public static void playAudioList(Activity activity, ArrayList<MediaWrapper> list, int position) {
Intent intent = new Intent(activity, AudioPlayerActivity.class);
intent.putExtra(AudioPlayerActivity.MEDIA_LIST, list);
intent.putExtra(AudioPlayerActivity.MEDIA_POSITION, position);
activity.startActivity(intent);
}
}
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