Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a video/audio action type #252

Closed
chashmeetsingh opened this issue Jun 6, 2017 · 2 comments
Closed

Adding a video/audio action type #252

chashmeetsingh opened this issue Jun 6, 2017 · 2 comments

Comments

@chashmeetsingh
Copy link
Member

Actual Behaviour

Currently mixcloud is searched and the webpage address is given which may/may not contain data.

Expected Behaviour

An action type of an audio/video should be returned + the audio/video file url that needs to be played.

Steps to reproduce it

http://api.asksusi.com/susi/chat.json?timezoneOffset=-330&q=play+wildest+dreams
Above query will help.

@chiragw15
Copy link
Member

Proposed implementation : Make a skill with query " play * " . Use youtube api to fetch list of videos with search query $1$ . Send the list of first 10 urls of the video fetched from youtube api to client along with action type "play". eg

"actions : [
{
        "type": "answer",
        "expression": "Here is a list of videos."
      },
      {
        "type": "play",
        "links": [{"https://www.youtube.com/watch?v=ID1"},{"https://www.youtube.com/watch?v=ID1"}]
      } 
}]

@chashmeetsingh
Copy link
Member Author

Yes, let's create one for it then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants