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

jw player 6 how to load multiple file with load() method


Hi

I am trying to load player with new playlist with load() method .
If i load single file its fine.
But how can i load multiple file (smil and m3u8) to support all devices,

As noted your source[] tag doesnt work with load() method.


var playlist= {

file: "assets/English.smil",
title: "english"
};

jwplayer().load(playlist);
jwplayer().play();


how can i add supported file for ios
thanks

22 Community Answers

JW Player

User  
0 rated :

any update?

Ethan Feldman

JW Player Support Agent  
0 rated :

Do you have a link?

JW Player

User  
0 rated :

ewebitservices.com/streamtest

sent you email earlier as well regarding crash issue

Ethan Feldman

JW Player Support Agent  
0 rated :

Yeah, we will debug this, thanks.

JW Player

User  
0 rated :

any update.... we cant publish stream without basic functionality......

Ethan Feldman

JW Player Support Agent  
0 rated :

I forwarded it to our developers to take a look at. Not sure why it is crashing.

JW Player

User  
0 rated :

I have sorted crashing issue,
I am asking about above question

in Javascript api source[] tag doesnt work with load() method.

so i am using following

var playlist= {

file: "assets/English.smil",
title: "english"
};

jwplayer().load(playlist);
jwplayer().play();

but then how can i add supported file like m3u8

Ethan Feldman

JW Player Support Agent  
0 rated :

That should work, just load a sources block inside of the playlist like:

playlist: [{
        image: "/uploads/myPoster.jpg",
        sources: [{
          file: "/uploads/myVideo360.mp4",
          width: 640,
          height: 360
        },{
          file: "/uploads/myVideo720.m3u8",
          width: 1280,
          height: 720
        }]
      }]

JW Player

User  
0 rated :

it doesnt work
on android it says "error loading player : no playable source found"

JW Player

User  
0 rated :

ewebitservices.com/streamtest

Ethan Feldman

JW Player Support Agent  
0 rated :

You are using a SMIL and an M3U8 here as the sources. Neither are supported on Android.

JW Player

User  
0 rated :

what is supported for android then.

Ethan Feldman

JW Player Support Agent  
0 rated :

Nothing at the moment :|

You can try with a static HTML5 <video> tag and try a SMIL or M3U8, neither will work.

You really just should use a MP4 file for Android right now.

JW Player

User  
0 rated :

ok.. so with live streaming, can i use mp4?

i have set primary source to html, but it loads flash as primary. Can u plz hav a look

JeroenW

JW Player Support Agent  
0 rated :

There’s a few playlist loading issues we want to fix for 6.2. These will likely solve your problems as well. Please keep an eye on this ticket to see if it’s fixed for 6.2 (in Jan 2013).

http://developer.longtailvideo.com/trac/ticket/1796

Ethan Feldman

JW Player Support Agent  
0 rated :

@Terry – It can’t be done with MP4 live…keep in mind, HTML5 primary + Firefox will still render in Flash mode because Firefox doesn’t support MP4 in HTML5 <video> natively.

JW Player

User  
0 rated :

thanks ethan,
I am using google chrome.
I just wanted at least one browser on android to play live streaming if not all.
So what is final option to workaround live streaming on androids
i have stream from bit gravity in rtmp, http, rtsp, universal url, smil playlist, m3u8 playlist formats.
plz suggest.. i have pm you urls.. plz suggest

Ethan Feldman

JW Player Support Agent  
0 rated :

Np. I would use RTSP in a <a> tag.

JW Player

User  
0 rated :

thanks for the reply. yes, rtsp as direct url is working.
but here http://ewebitservices.com/streamtest/ , its not even working on android 4.0
its not falling back to html, whereas primary mode is html

Ethan Feldman

JW Player Support Agent  
0 rated :

That is because you are loading a smil / m3u8 as the source. Neither will work on Android.

JW Player

User  
0 rated :

check http://ewebzyme.co.uk/mta.tv

play second,third and fourth stream.... its m3u8 and working on android

Ethan Feldman

JW Player Support Agent  
0 rated :

Not on my devices. It depends on the Android OS. 4.0 it kind of works, but it is broken for the lower versions and broken for 4.1 as well.

This question has received the maximum number of answers.