Hey all, it’s been a minute since I have posted. I hope things are well.
I’m trying to understand the playlist functionality in Kaltura Server. I have a potential requirement to implement user specific and “public” playlists in my Kaltura API app. I’d like to use the Kaltura Playlist functionality, but I’m unsure of a few things. (in this context “public” means available to all my applications users)
My main question is; Are Kaltura playlists owned by a specific user such that they can only “see” their playlists? It seems that the answer is no. Playlists are sort of a “global” thing in Kaltura.
If they can be user specific, how could one implement them in Kaltura? If it’s in the documentation, I’m just not seeing it and I just need to be pointed in the right direction.
This is against best practice, I know, but currently my API application uses an admin login to interact with Kaltura. I’d need to change this substantially if I was all of a sudden going to have user specific content on the platform. The documentation seems pretty clear on this, though I could use some clarification on user creation on the base platform vs user creation in KMC. They’re clearly not the same thing.
I hope this is a sufficient explanation on what I’m looking for. Thank you!
Playlists are implemented as entries of type 5 [KalturaEntryType::PLAYLIST]. Each such entry has a TXT file on disk which contains a comma separated list of the entry IDs it consists of.
The ownership behaviour is the same as with all other entry types. They are all associated with a specific partner ID.
To illustrate, here is an example from my own local ENV where 0_2cdigqq9 is the playlist ID:
As you can understand from the above, when making changes to the playlist, the old version is still kept so there may be older txt files present as well, for example, on my ENV:
# ls -alrt /opt/kaltura/web//content/entry/data/0/0/0_2cdigqq9*
-rw-r----- 1 www-data kaltura 0 Nov 22 2017 /opt/kaltura/web//content/entry/data/0/0/0_2cdigqq9_100002.txt
-rw-r----- 1 www-data kaltura 10 Nov 22 2017 /opt/kaltura/web//content/entry/data/0/0/0_2cdigqq9_100012.txt
-rw-r----- 1 www-data www-data 32 Aug 19 18:55 /opt/kaltura/web//content/entry/data/0/0/0_2cdigqq9_100022.txt
You can tell that 100022.txt is the current one because of the value in entry.data.
It is worth noting that there are two kinds of playlists that Kaltura supports: manual and rule based. Manual playlists allow you to pre-define a static list of entries, whereas Rule Based playlists are dynamic, and will update automatically based on what is currently available in your media library and the rules that define the playlist.