Playlist
Schema versions
Schema
type SwarmPlaylist = {
/** Playlist id (used for feed update) */
id: string
/** Playlist name (undefined for __channel & __saved) */
name: string | undefined
/** Playlist owner */
owner: string
/** Playlist creation timestamp */
createdAt: number
/** Playlist update timestamp */
updatedAt: number
} & ({
/** Playlist visibility: public (show in channel), unlisted (not in channel), private (encrypted) */
type: "private"
/**
* Encrypted data of the playlist (only for private playlists)
* see `EncryptedSwarmPlaylistData` for a reference to the un-encrypted content
*/
encryptedData: string,
} | {
/** Playlist visibility: public (show in channel), unlisted (not in channel), private (encrypted) */
type: "public" | "unlisted"
/** List of the playlist videos */
videos: SwarmPlaylistVideoRaw[]
/** Playlist description */
description?: string | null
})
type EncryptedSwarmPlaylistData = {
/** List of the playlist videos */
videos: SwarmPlaylistVideoRaw[]
/** Playlist description */
description?: string | null
}
type SwarmPlaylistVideo = {
/** Video reference */
r: string
/** Video Title */
t: string
/** Timestamp of when the videos has been added to playlist */
a: number
/** Timestamp of when the video should be visible */
p?: number
}Feed
Last updated