
Help to add multiple sources trought api
Hi there,
I have this code:
jwplayer('video').setup({
'primary': 'flash',
sources: [
{
file: "....AYT1-XDVBRYZHZDM3.mp4", label: "360p" },
{ file: "....AYT1-XDVBRYZHZDM3.mp4", label: "720p" }
]
});
What i want to to is change multiple sources with the js api. If i have one file source i do it like the example below and it works fine.
var the_video_url = "....AYT1-XDVBRYZHZDM3.mp4";
jwplayer('video').setup({
'primary': 'flash',
file: the_video_url
});
I did not find a piece of code that help me to add multiple sources files with the js api.
Is this possible, and if it is can you provide me some example on how to do it please?
Thank you very much.
Nelson