Firefox OS/Vaani/Music: Difference between revisions

Line 1: Line 1:




= Design: =
= Proposal =
== Proposal 1 ==
[[File:Vaani-music-iac-proposal1.png]]
[[File:Vaani-music-iac-proposal1.png]]


Line 17: Line 16:
* what album is this (out of scope)
* what album is this (out of scope)


=== Music widget at Vaani ===
== Music widget at Vaani ==


We will write a UI at Vaani to have music control widget. The state and information on top of it are updated with the change event through IAC.
We will write a UI at Vaani to have music control widget. The state and information on top of it are updated with the change event through IAC.


=== command declaration ===
== command declaration ==


We may hardcoded the supported action of music app at Vaani app firstly. Once JSON-LD is confirmed, we will move the actions to correct place.
We may hardcoded the supported action of music app at Vaani app firstly. Once JSON-LD is confirmed, we will move the actions to correct place.


== Commands & Protocols ==
= Commands & Protocols =
===Extended schemata===
== Extended schemata ==


We may extend some actions to meet our requirement:
We may extend some actions to meet our requirement:
Line 34: Line 33:
# Thing > Action > ControlAction > SkipBackwardAction
# Thing > Action > ControlAction > SkipBackwardAction


=== Schema ===
== Schema ==
==== Play music ====
=== 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 75: Line 74:




==== Stop ====
=== Stop ===
For an app who wants to support '''Stop''' command, it should declare the following action at its JSON-LD data :
For an app who wants to support '''Stop''' command, it should declare the following action at its JSON-LD data :


Line 108: Line 107:




==== Pause ====
=== Pause ===
For an app who wants to support '''Pause''' command, it should declare the following action at its JSON-LD data :
For an app who wants to support '''Pause''' command, it should declare the following action at its JSON-LD data :


Line 141: Line 140:




==== Previous ====
=== Previous ===
For an app who wants to support '''Previous''' command, it should declare the following action at its JSON-LD data :
For an app who wants to support '''Previous''' command, it should declare the following action at its JSON-LD data :


Line 176: Line 175:




==== Next ====
=== Next ===
For an app who wants to support '''Next''' command, it should declare the following action at its JSON-LD data :
For an app who wants to support '''Next''' command, it should declare the following action at its JSON-LD data :


Line 219: Line 218:




==== Who is the artist / What album is this ====
=== 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.
Line 257: Line 256:
         }
         }
       }
       }


= FAQ =
= FAQ =
Confirmed users
209

edits