Reputation: 4079
I am curious. Is it possible to create a playlist with "file: videofile.mp4" and "file: http://www.youtube.com/watch?v=1234567" together, with JWPlayer?
I tried it, it creates a js error on the page. Searched for, and couldn't find a documentation about that. I wonder if anybody else tried and succeeded creating such a playlist.
Thanks!
Upvotes: 0
Views: 554
Reputation: 885
It's possible:
Example: http://jsfiddle.net/7zgZn/
Code:
jwplayer("container").setup({
playlist: [{
file:'https://www.youtube.com/watch?v=tRm04aUyOrM',
title: "youtube",
},
{
file: "http://content.jwplatform.com/videos/HkauGhRi-640.mp4",
image: "http://content.jwplatform.com/thumbs/HkauGhRi-640.jpg",
title: "mp4",
}],
width: "80%",
aspectratio: "16:9",
stretching: 'exactfit',
});
Upvotes: 2