Playlist¶
Imports¶
In Protobuf files:
import "melo/api/Playlist.proto";
In C++ files:
#include <melo/api/Playlist.pb.h>
Descriptor¶
This message describe a Playlist node.
Field |
Type |
Label |
Description |
|---|---|---|---|
name |
string |
Name of the playlist
|
|
description |
string |
Description of the playlist
|
|
icon |
string |
Icon ID of the playlist
|
Entry¶
This message describe one entry in a Playlist path.
Field |
Type |
Label |
Description |
|---|---|---|---|
id |
string |
ID of the media
|
|
name |
string |
Displayed name
|
|
media |
melo.api.media.Media |
Media when entry is media type
|
Event¶
This message is used as payload for Playlist Event messages.
Request¶
This message is used as payload for Playlist Request messages.
Field |
Type |
Label |
Description |
|---|---|---|---|
list |
Request.List |
List entries in playlist
|
|
queue |
Request.Queue |
Queue a media to player
|
Request.List¶
Message to list entries
Request.Queue¶
Message to queue a media
Field |
Type |
Label |
Description |
|---|---|---|---|
id |
string |
ID of the media to queue
|
|
play |
bool |
Queue and play immediately
|
Response¶
This message is used as payload for Playlist Response messages.
Field |
Type |
Label |
Description |
|---|---|---|---|
list |
Response.List |
List of entries
|
Response.List¶
Message with list of entries
Field |
Type |
Label |
Description |
|---|---|---|---|
entries |
Entry |
repeated |
List of entries
|