fossasia / susi_iOS

SUSI AI iOS app http://susi.ai
Apache License 2.0
1.87k stars 139 forks source link

Implement action types pause, resume and restart #395

Open Orbiter opened 6 years ago

Orbiter commented 6 years ago

Describe the solution you'd like If a media file is played, it is possible to say "stop" to stop playing. Similarly, with the following action types, it should be possible to

Additional context Examples: https://api.susi.ai/susi/chat.json?q=pause

"actions": [{"type": "pause"}]

https://api.susi.ai/susi/chat.json?q=resume

"actions": [{"type": "resume"}]

https://api.susi.ai/susi/chat.json?q=restart

"actions": [{"type": "restart"}]
jogendra commented 6 years ago

@Orbiter Currently, youtube video etc is playing over chat screen so the user can't use these actions without closing youtube player. If we play video/MP3 within app then there will be multiple instances of Player, which is not a good practice.