![](https://secure.gravatar.com/avatar/4bb68dc2bfacc627feecdb9c49068a74?rating=PG&size=50&default=https%3A%2F%2Fcdn.desk.com%2Fassets%2Funknown_user_50-8ad5644bbe6b1bd7454f2ea465f782bd.png)
play local video to offline using jw player
how to put local m3u8 file path in playlistitem
files = getListFiles(new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MUSIC), "/something/"));
File offlinefile=new File("file://"+mediaStorageDir,"do.m3u8");
String path=offlinefile.getAbsolutePath();
Log.d("offlinefile",path);
PlaylistItem pi = new PlaylistItem.Builder()
.file(path)
.title("BipBop")
.description("A video player testing video.")
.build();
mPlayerView.load(pi);