Confirmed users
209
edits
(Add FAQ) |
(→Schema) |
||
Line 37: | Line 37: | ||
"@type": "ListenAction", | "@type": "ListenAction", | ||
"target": { | "target": { | ||
"@type": " | "@type": "EntryPoint", | ||
" | "urlTemplate": “iac://music-controller", | ||
"actionApplication": { | |||
"@type": "SoftwareApplication", | |||
"operatingSystem": “Firefox OS" | |||
} | |||
} | } | ||
}] | }] | ||
Line 49: | Line 53: | ||
"@type": "StopAction", | "@type": "StopAction", | ||
"target": { | "target": { | ||
"@type": " | "@type": "EntryPoint", | ||
" | "urlTemplate": “iac://music-controller", | ||
"actionApplication": { | |||
"@type": "SoftwareApplication", | |||
"operatingSystem": “Firefox OS" | |||
} | |||
} | } | ||
}] | }] | ||
Line 61: | Line 69: | ||
"@type": "SuspendAction", | "@type": "SuspendAction", | ||
"target": { | "target": { | ||
"@type": " | "@type": "EntryPoint", | ||
" | "urlTemplate": “iac://music-controller", | ||
"actionApplication": { | |||
"@type": "SoftwareApplication", | |||
"operatingSystem": “Firefox OS" | |||
} | |||
} | } | ||
}] | }] | ||
Line 73: | Line 85: | ||
"direction": @direction | "direction": @direction | ||
"target": { | "target": { | ||
"@type": " | "@type": "EntryPoint", | ||
" | "urlTemplate": “iac://music-controller", | ||
"actionApplication": { | |||
"@type": "SoftwareApplication", | |||
"operatingSystem": “Firefox OS" | |||
} | |||
} | } | ||
}] | }] | ||
Line 83: | Line 99: | ||
"direction": @direction | "direction": @direction | ||
"target": { | "target": { | ||
"@type": " | "@type": "EntryPoint", | ||
" | "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/ | "@context": "http://schema.org/", | ||
"@type": " | "@type": "SearchAction", | ||
"object": " | "object": ["MusicGroup", "MusicAlbum"], | ||
"target": { | "target": { | ||
"@type": " | "@type": "EntryPoint", | ||
" | "urlTemplate": “iac://music-controller", | ||
" | "actionApplication": { | ||
"type": " | "@type": "SoftwareApplication", | ||
"operatingSystem": “Firefox OS" | |||
} | } | ||
} | } |