Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(!conv.surface.capabilities.has('actions.capability.MEDIA_RESPONSE_AUDIO')) {
- conv.ask('Sorry, this device does not support audio playback.');
- }
- else{
- conv.ask(new MediaObject({
- name: 'Radio one',
- url: 'my_streaming_url.mp3',
- description: 'A funky Jazz tune',
- }));
- conv.ask(new Suggestions(['Radio two']));
- }
Add Comment
Please, Sign In to add comment