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

Android sdk play local videos


When I play the local video, the loading when starting,forward and rewing is pretty slow, is there any way to increase? I have used the newest android phone

7 Community Answers

George

JW Player Support Agent  
0 rated :

Hi,

I did not experience any degradation in the player’s seek ability when playing local videos on my device.
http://qa.jwplayer.com.s3.amazonaws.com/~george/local_video.mp4

a...

User  
0 rated :

Hi, I tried Downloading the .m3u8 and its been downloaded successfully but when i tried to read those files by again using

PlaylistItem item = new PlaylistItem.Builder()
.file(path)
.build();
mPlayerView.load(item); its by default changing to path/1mbps.m3u8 so why is this happening and how shall i get all the files of .m38

George

JW Player Support Agent  
0 rated :

Downloading HLS files are not a simple matter, there are sub-manifests that define the different quality streams, then chuncklists with all the .ts segments of the video. You’ll then have to define full local paths for all of these elements, so not only do you have to download the m3u8s you’ll also have to edit them.

Abhilash

User  
0 rated :

So will i get some samples or snippets that how it is done in a proper way ?? Please Help me out !!

George

JW Player Support Agent  
0 rated :

Hi,

We don’t offer custom code solutions, neither do I have a code example for this use case. If you’re playing the file locally, you may as well use local MP4 sources instead. HLS is designed to offer adaptive bitrate streaming when Online. Local playback is just not what it was designed for.

Abhilash

User  
0 rated :

Hi George,

That is absolutely fine but we need an unplayable resource (Security). Mp4 could be played by any player . Im using Jw player whereas when i download it its in m3u8 format and when i again try to run the file it should be playable in your player. This is not happening and also by default ur player is not giving chunks.

George

JW Player Support Agent  
0 rated :

HLS could be played by other players as well, as long as the manifest is pointing to the right resource. What exactly are you trying to accomplish? What security risk are you trying to avoid?

This question has received the maximum number of answers.