Firefox OS/Vaani/Music: Difference between revisions

Jump to navigation Jump to search
Line 28: Line 28:


=== Schema ===
=== Schema ===
1. Play music<br>
==== 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:
       }
       }


2. Stop<br>
==== Stop ====


       "custom_commands": [{
       "custom_commands": [{
Line 67: Line 67:




3. Pause<br>
==== Pause ====


       "custom_commands": [{
       "custom_commands": [{
Line 82: Line 82:
       }]
       }]


4. Previous / Next <br>
==== Previous / Next ====


       "custom_commands": [{
       "custom_commands": [{
Line 112: Line 112:
       }]
       }]


5. Who is the artist / What album is this <br>
==== 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.
Confirmed users
209

edits

Navigation menu