Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

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);

1 Community Answers

George

JW Player Support Agent  
0 rated :

Have you been able to setup local video playback for MP4’s? Not sure if HLS would work offline since there’s no bandwidth to gauge quality switching.

This question has received the maximum number of answers.