Confirmed users
209
edits
(→Schema) |
(→Schema) |
||
Line 28: | Line 28: | ||
=== Schema === | === Schema === | ||
==== Play music ==== | |||
For an app who wants to support '''Play music''', it should declare the following action at its JSON-LD data: | For an app who wants to support '''Play music''', it should declare the following action at its JSON-LD data: | ||
Line 51: | Line 51: | ||
} | } | ||
==== Stop ==== | |||
"custom_commands": [{ | "custom_commands": [{ | ||
Line 67: | Line 67: | ||
==== Pause ==== | |||
"custom_commands": [{ | "custom_commands": [{ | ||
Line 82: | Line 82: | ||
}] | }] | ||
==== Previous / Next ==== | |||
"custom_commands": [{ | "custom_commands": [{ | ||
Line 112: | Line 112: | ||
}] | }] | ||
==== Who is the artist / What album is this ==== | |||
If we want to query "Who is the artist", we may send a '''SearchAction''' with object equal to '''MusicGroup''' and without query to query the artist of current playing. If we want to query "What album is this", we may send a '''SearchAction''' with object equal to '''MusicAlbum''' and without query to query the album of current playing. | If we want to query "Who is the artist", we may send a '''SearchAction''' with object equal to '''MusicGroup''' and without query to query the artist of current playing. If we want to query "What album is this", we may send a '''SearchAction''' with object equal to '''MusicAlbum''' and without query to query the album of current playing. |