KDP Playlist Not Loaded

4 replies [Last post]
Joined: 05/14/2009
Points: 7

Hello, I have a few questions,

I have created a custom KDP with a Playlist Module, but I have not been able to figure out how to attach or create playlists for it.

Here is the scenario:

viewlistings.php?view=6 is going to have 1 KDP player for Video Only, and 1 KDP w/ Playlist. The Video's EntryID I have stored on my local Database and I have no problems using flashVars to attach the video to my primary KDP. In my database I also have a list of audio files (EntryID dataURL, etc) for that particular listing. Basically after upload, I get the details of the uploads and save them to my database.

Reading the playlist api docs, I find that I need to use the following format for the flashVars:

var flashVars = {
    entryId: "{/literal}{$files}{literal}",
    k_pl_0_name: "Test",
    k_pl_0_url: "k_pl_0_url=http://www.kaltura.com/index.php/partnerservices2/executeplaylist?uid=&partner_id=2xxxx&subp_id=2xxxxxx&format=8&ks={ks}&playlist_id=omn68qzl14"
};

If I use the entryId: alone, then everything works, but I don't have a playlist. If I use the k_pl_ format, I can't get the playlist to load. I manually created this playlist using the KMC and got the info of the url using the testme console, however I am stuck and can't figure out what I am doing wrong.

Thanks for any help provided.

Joined: 05/14/2009
Points: 7

Can't edit my original post, but I fix my original typo on my k_pl_0_url:

This is what I have now:

var flashVars = {
    k_pl_0_name: "Test",
    k_pl_0_url: "http://www.kaltura.com/index.php/partnerservices2/executeplaylist?uid=&partner_id=2xxxx&subp_id=2xxxxxx&format=8&ks={ks}&playlist_id=omn68qzl14"
};

Still Same results...

Joined: 02/22/2009
Points: 38

Hi Jesus,
When I try to access the playlist URL with my browser -
http://www.kaltura.com/index.php/partnerservices2/executeplaylist?uid=&partner_id=2xxxx&subp_id=2xxxxxx&format=8&ks={ks}&playlist_id=omn68qzl14

it doesn't return any results (try for yourself). this means that something is wrong with the playlist or that it is empty. This is probably the cause for the problem.

Joined: 05/14/2009
Points: 7

Yea, sorry about that, the correct URL is:

http://www.kaltura.com/index.php/partnerservices2/executeplaylist?uid=&partner_id=27607&subp_id=2760700&format=8&ks={ks}&playlist_id=omn68qzl14

I had removed the id's from the string when posting here. Still same results.

Joined: 05/14/2009
Points: 7

We found the fix thanks to Assaf.Chaprak

My error was that I was not using the url encoded. And the url must be encoded

var flashVars = {
    layoutId: "playlistLight",
    uid: 0,
    partner_id: "27607",
    subp_id: "2760700",
    k_pl_autoContinue: true,
    k_pl_autoInsertMedia: true,
    k_pl_0_name: "Test",
    k_pl_0_url: "http%3A%2F%2Fwww.kaltura.com%2Findex.php%2Fpartnerservices2%2Fexecuteplaylist%3Fuid%3D%26partner_id%3D27607%26subp_id%3D2760700%26format%3D8%26ks%3D%7Bks%7D%26playlist_id%3Domn68qzl14"
};