📖
Etherna Docs
  • Get Started
  • Schema
    • Image
    • Profile
    • Video
    • User's playlists
    • Playlist
Powered by GitBook
On this page
  • Schema versions
  • Schema
  • Feed
  1. Schema

User's playlists

Every user has 2 default playlists: channel and saved. The channel playlist stores every single videos the user upload on an index. The saved playlist stores all the bookmarked videos from the user. The ladder is by default a “unlisted“ playlist, but that could be made private by encryption as an option.

All the videos shown in a user profile page are loaded from the channel playlist, rather than the current index that the user has configured.

In addition to those 2 default playlists, there is an additional property custom which is an array of references to the user’s custom playlists.

Schema versions

Schema

type SwarmUserPlaylists = {
  /** Reference to the channel playlist */
  channel?: string
  /** Reference to the saved videos playlist */
  saved?: string
  /** Reference list of custom playlists */
  custom?: string[]
}

Feed

The data about the user’s playlists are stored in a feed. The feed is dynamically associated to the configured index.

Feed info:

  • Owner: address of the user

  • Topic (unencoded): `EthernaUserPlaylists:${indexOrigin}` - indexOrigin is the origin of the current index. If the index url is https://index.etherna.io/api the origin is going to be: index.etherna.io

  • Type: sequence

PreviousVideoNextPlaylist

Last updated 2 years ago