Skip to content
Snippets Groups Projects
Commit e0fad4dc authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Create MediaWrapper for playback

Allow to display proper title
parent 9214aa5a
No related branches found
No related tags found
No related merge requests found
......@@ -55,7 +55,11 @@ public class ExtensionAdapter extends RecyclerView.Adapter<ExtensionAdapter.View
if (item.type == VLCExtensionItem.TYPE_DIRECTORY) {
mFragment.browseItem(item);
} else if (item.type == VLCExtensionItem.TYPE_AUDIO || item.type == VLCExtensionItem.TYPE_VIDEO){
MediaUtils.openUri(v.getContext(), Uri.parse(item.link)); //TODO fix path in playbackservice !
MediaWrapper mw = new MediaWrapper(Uri.parse(item.link));
mw.setTitle(item.getTitle());
mw.setDescription(item.getSubTitle());
mw.setType(getTypeAccordingToItem(item.type));
MediaUtils.openMedia(v.getContext(), mw);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment