Firefox OS/Vaani/Music: Difference between revisions

update commands and protocol
(update commands and protocol)
Line 4: Line 4:


=== Structure ===
=== Structure ===
=== Commands: ===
=== Commands & Protocols ===
1. Play music <br>
1. Play music<br>
2. Previous / Next <br>
3. Stop / Pause <br>
4. Who is the artist <br>
5. What album is this <br>


      "custom_commands": [{
        "@context": "http://schema.org/PlayAction",
        "@type": "PlayAction",
      }]
2. Stop<br>
      "custom_commands": [{
        "@context": "http://schema.org/Deactivation",
        "@type": "Deactivation",
      }]
3. Pause<br>
      "custom_commands": [{
        "@context": "http://schema.org/SuspendAction",
        "@type": "SuspendAction",
      }]
4. Previous / Next <br>
      "custom_commands": [{
        "@context": "http://schema.org/",
        "@type": "",
      }]
5. Who is the artist / What album is this <br>
      "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: ==
== Lacking: ==
110

edits