Firefox OS/Vaani/Music: Difference between revisions

(Add FAQ)
Line 37: Line 37:
         "@type": "ListenAction",
         "@type": "ListenAction",
         "target": {
         "target": {
           "@type": "IAC",
           "@type": "EntryPoint",
           "name": "music-controller",
           "urlTemplate": “iac://music-controller",
          "actionApplication": {
            "@type": "SoftwareApplication",
            "operatingSystem": “Firefox OS"
          }
         }
         }
       }]
       }]
Line 49: Line 53:
         "@type": "StopAction",
         "@type": "StopAction",
         "target": {
         "target": {
           "@type": "IAC",
           "@type": "EntryPoint",
           "name": "music-controller",
           "urlTemplate": “iac://music-controller",
          "actionApplication": {
            "@type": "SoftwareApplication",
            "operatingSystem": “Firefox OS"
          }
         }
         }
       }]
       }]
Line 61: Line 69:
         "@type": "SuspendAction",
         "@type": "SuspendAction",
         "target": {
         "target": {
           "@type": "IAC",
           "@type": "EntryPoint",
           "name": "music-controller",
           "urlTemplate": “iac://music-controller",
          "actionApplication": {
            "@type": "SoftwareApplication",
            "operatingSystem": “Firefox OS"
          }
         }
         }
       }]
       }]
Line 73: Line 85:
         "direction": @direction
         "direction": @direction
         "target": {
         "target": {
           "@type": "IAC",
           "@type": "EntryPoint",
           "name": "music-controller",
           "urlTemplate": “iac://music-controller",
          "actionApplication": {
            "@type": "SoftwareApplication",
            "operatingSystem": “Firefox OS"
          }
         }
         }
       }]
       }]
Line 83: Line 99:
         "direction": @direction
         "direction": @direction
         "target": {
         "target": {
           "@type": "IAC",
           "@type": "EntryPoint",
           "name": "music-controller",
           "urlTemplate": “iac://music-controller",
          "actionApplication": {
            "@type": "SoftwareApplication",
            "operatingSystem": “Firefox OS"
          }
         }
         }
       }]
       }]


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


       "custom_commands": [{
       "custom_commands": [{
         "@context": "http://schema.org/AskAction",
         "@context": "http://schema.org/",
         "@type": "AskAction",
         "@type": "SearchAction",
         "object": "Question",
         "object": ["MusicGroup", "MusicAlbum"],
         "target": {
         "target": {
           "@type": "IAC",
           "@type": "EntryPoint",
           "name": "music-controller",
           "urlTemplate": “iac://music-controller",
           "data": {
           "actionApplication": {
             "type": "@queryItem"
             "@type": "SoftwareApplication",
            "operatingSystem": “Firefox OS"
           }
           }
         }
         }
Confirmed users
209

edits