Firefox OS/Vaani/Music
Music
Design:
Proposal 1
Vaani will connect to music-controller IAC while Vaani receives a control commands, play, stop, pause, resume, previous, or next. No matter music app is opened or not, Vaani will open or connect to it at background and sends command to music app. Unlike mediacomms at system app, system app waits for playing state change to activate media widget at utility tray or lockscreen. Vaani uses music-controller in active mode.
In our UX spec, Vaani will ask music ask:
- if music is playing
- to play next song
- to play previous song
- to play all
- to stop/pause playing
- to resume playing
Commands & Protocols
1. Play music
"custom_commands": [{ "@context": "http://schema.org/PlayAction", "@type": "PlayAction", }]
2. Stop
"custom_commands": [{ "@context": "http://schema.org/Deactivation", "@type": "Deactivation", }]
3. Pause
"custom_commands": [{ "@context": "http://schema.org/SuspendAction", "@type": "SuspendAction", }]
4. Previous / Next
"custom_commands": [{ "@context": "http://schema.org/", "@type": "", }]
5. Who is the artist / What album is this
"custom_commands": [{ "@context": "http://schema.org/AskAction", "@type": "AskAction", "object": "Question", "target": { "@type": "IAC", "name": "vaani-music", "data": { "type": "webapp", "manifest": "@manifest", "entry_point": "@entry_point" } } }]
Lacking:
Discussion
1. with kelly, reza
2. with media team
3. confirm syntax schema.org
4. new IAC connection (will become Vaani API)