Media Player is playing get confused to catch Custom Next Intent
I'm made simple Media Player
by using MediaResponse
.
Google automatically handle : play
, pause
, stop
, resume
.
Since Google not supported : next
function yet, I created custom Next Intent
to handle next
function.
I had 2 cases makes me confused after talk to Dr. Media
then go
:
MediaResponse
show correctly, not playing yet (not click button Play yet).
Case 1 - Then I say next
(or next song
), it matched with my defined phrases in my custom intent. And Next function
is OK.
Case 2 - I clicked Play button to play audio, then I say next
(or next song
), it didn't match with my defined phrases (it oftens say Okay
and nothing happens), so Next function
is not OK. (As images in below)
In case 2, How I can catch my phrases next
, next song
, play next
... when Media Player is playing? (In other words, these phrases can not trigger my custom intent)
Please help me, Thanks
p/s : It happens on Mobile phones
actions_intent_NEXT.json
"id": "01055a59-26a0-4f39-a770-6bc5404482d9",
"name": "actions_intent_NEXT",
"auto": true,
"contexts": [
"actions_capability_screen_output",
"actions_capability_media_response_audio"
],
"responses": [
"resetContexts": false,
"affectedContexts": [
"name": "actions_capability_screen_output",
"parameters": ,
"lifespan": 5
,
"name": "actions_capability_media_response_audio",
"parameters": ,
"lifespan": 5
],
"parameters": [
"id": "2ce8514c-a346-4251-9a35-cab32d2c9d7c",
"required": false,
"dataType": "@nextPlay",
"name": "nextPlay",
"value": "$nextPlay",
"isList": false
],
"messages": [
"type": 0,
"speech":
],
"defaultResponsePlatforms": ,
"speech":
],
"priority": 500000,
"cortanaCommand":
"navigateOrService": "NAVIGATE",
"target": ""
,
"webhookUsed": true,
"webhookForSlotFilling": false,
"lastUpdate": 1542252675,
"fallbackIntent": false,
"events": [
"name": "actions_intent_NEXT"
],
"userSays": [
"id": "e28a4087-2bf9-494d-9790-c7347f870ee4",
"data": [
"text": "next song",
"alias": "nextPlay",
"meta": "@nextPlay",
"userDefined": true
],
"isTemplate": false,
"count": 0,
"updated": 1542249008,
"isAuto": false
,
"id": "7a8cf2a2-d131-490d-977d-1212f4642f52",
"data": [
"text": "next",
"alias": "nextPlay",
"meta": "@nextPlay",
"userDefined": true
],
"isTemplate": false,
"count": 0,
"updated": 1542248700,
"isAuto": false
],
"followUpIntents": ,
"liveAgentHandoff": false,
"endInteraction": false,
"templates":
node.js dialogflow actions-on-google
add a comment |
I'm made simple Media Player
by using MediaResponse
.
Google automatically handle : play
, pause
, stop
, resume
.
Since Google not supported : next
function yet, I created custom Next Intent
to handle next
function.
I had 2 cases makes me confused after talk to Dr. Media
then go
:
MediaResponse
show correctly, not playing yet (not click button Play yet).
Case 1 - Then I say next
(or next song
), it matched with my defined phrases in my custom intent. And Next function
is OK.
Case 2 - I clicked Play button to play audio, then I say next
(or next song
), it didn't match with my defined phrases (it oftens say Okay
and nothing happens), so Next function
is not OK. (As images in below)
In case 2, How I can catch my phrases next
, next song
, play next
... when Media Player is playing? (In other words, these phrases can not trigger my custom intent)
Please help me, Thanks
p/s : It happens on Mobile phones
actions_intent_NEXT.json
"id": "01055a59-26a0-4f39-a770-6bc5404482d9",
"name": "actions_intent_NEXT",
"auto": true,
"contexts": [
"actions_capability_screen_output",
"actions_capability_media_response_audio"
],
"responses": [
"resetContexts": false,
"affectedContexts": [
"name": "actions_capability_screen_output",
"parameters": ,
"lifespan": 5
,
"name": "actions_capability_media_response_audio",
"parameters": ,
"lifespan": 5
],
"parameters": [
"id": "2ce8514c-a346-4251-9a35-cab32d2c9d7c",
"required": false,
"dataType": "@nextPlay",
"name": "nextPlay",
"value": "$nextPlay",
"isList": false
],
"messages": [
"type": 0,
"speech":
],
"defaultResponsePlatforms": ,
"speech":
],
"priority": 500000,
"cortanaCommand":
"navigateOrService": "NAVIGATE",
"target": ""
,
"webhookUsed": true,
"webhookForSlotFilling": false,
"lastUpdate": 1542252675,
"fallbackIntent": false,
"events": [
"name": "actions_intent_NEXT"
],
"userSays": [
"id": "e28a4087-2bf9-494d-9790-c7347f870ee4",
"data": [
"text": "next song",
"alias": "nextPlay",
"meta": "@nextPlay",
"userDefined": true
],
"isTemplate": false,
"count": 0,
"updated": 1542249008,
"isAuto": false
,
"id": "7a8cf2a2-d131-490d-977d-1212f4642f52",
"data": [
"text": "next",
"alias": "nextPlay",
"meta": "@nextPlay",
"userDefined": true
],
"isTemplate": false,
"count": 0,
"updated": 1542248700,
"isAuto": false
],
"followUpIntents": ,
"liveAgentHandoff": false,
"endInteraction": false,
"templates":
node.js dialogflow actions-on-google
Catching these events during playback is currently not supported. You can file a feature request: developers.google.com/actions/support
– Leon Nicholls
Nov 15 '18 at 16:58
add a comment |
I'm made simple Media Player
by using MediaResponse
.
Google automatically handle : play
, pause
, stop
, resume
.
Since Google not supported : next
function yet, I created custom Next Intent
to handle next
function.
I had 2 cases makes me confused after talk to Dr. Media
then go
:
MediaResponse
show correctly, not playing yet (not click button Play yet).
Case 1 - Then I say next
(or next song
), it matched with my defined phrases in my custom intent. And Next function
is OK.
Case 2 - I clicked Play button to play audio, then I say next
(or next song
), it didn't match with my defined phrases (it oftens say Okay
and nothing happens), so Next function
is not OK. (As images in below)
In case 2, How I can catch my phrases next
, next song
, play next
... when Media Player is playing? (In other words, these phrases can not trigger my custom intent)
Please help me, Thanks
p/s : It happens on Mobile phones
actions_intent_NEXT.json
"id": "01055a59-26a0-4f39-a770-6bc5404482d9",
"name": "actions_intent_NEXT",
"auto": true,
"contexts": [
"actions_capability_screen_output",
"actions_capability_media_response_audio"
],
"responses": [
"resetContexts": false,
"affectedContexts": [
"name": "actions_capability_screen_output",
"parameters": ,
"lifespan": 5
,
"name": "actions_capability_media_response_audio",
"parameters": ,
"lifespan": 5
],
"parameters": [
"id": "2ce8514c-a346-4251-9a35-cab32d2c9d7c",
"required": false,
"dataType": "@nextPlay",
"name": "nextPlay",
"value": "$nextPlay",
"isList": false
],
"messages": [
"type": 0,
"speech":
],
"defaultResponsePlatforms": ,
"speech":
],
"priority": 500000,
"cortanaCommand":
"navigateOrService": "NAVIGATE",
"target": ""
,
"webhookUsed": true,
"webhookForSlotFilling": false,
"lastUpdate": 1542252675,
"fallbackIntent": false,
"events": [
"name": "actions_intent_NEXT"
],
"userSays": [
"id": "e28a4087-2bf9-494d-9790-c7347f870ee4",
"data": [
"text": "next song",
"alias": "nextPlay",
"meta": "@nextPlay",
"userDefined": true
],
"isTemplate": false,
"count": 0,
"updated": 1542249008,
"isAuto": false
,
"id": "7a8cf2a2-d131-490d-977d-1212f4642f52",
"data": [
"text": "next",
"alias": "nextPlay",
"meta": "@nextPlay",
"userDefined": true
],
"isTemplate": false,
"count": 0,
"updated": 1542248700,
"isAuto": false
],
"followUpIntents": ,
"liveAgentHandoff": false,
"endInteraction": false,
"templates":
node.js dialogflow actions-on-google
I'm made simple Media Player
by using MediaResponse
.
Google automatically handle : play
, pause
, stop
, resume
.
Since Google not supported : next
function yet, I created custom Next Intent
to handle next
function.
I had 2 cases makes me confused after talk to Dr. Media
then go
:
MediaResponse
show correctly, not playing yet (not click button Play yet).
Case 1 - Then I say next
(or next song
), it matched with my defined phrases in my custom intent. And Next function
is OK.
Case 2 - I clicked Play button to play audio, then I say next
(or next song
), it didn't match with my defined phrases (it oftens say Okay
and nothing happens), so Next function
is not OK. (As images in below)
In case 2, How I can catch my phrases next
, next song
, play next
... when Media Player is playing? (In other words, these phrases can not trigger my custom intent)
Please help me, Thanks
p/s : It happens on Mobile phones
actions_intent_NEXT.json
"id": "01055a59-26a0-4f39-a770-6bc5404482d9",
"name": "actions_intent_NEXT",
"auto": true,
"contexts": [
"actions_capability_screen_output",
"actions_capability_media_response_audio"
],
"responses": [
"resetContexts": false,
"affectedContexts": [
"name": "actions_capability_screen_output",
"parameters": ,
"lifespan": 5
,
"name": "actions_capability_media_response_audio",
"parameters": ,
"lifespan": 5
],
"parameters": [
"id": "2ce8514c-a346-4251-9a35-cab32d2c9d7c",
"required": false,
"dataType": "@nextPlay",
"name": "nextPlay",
"value": "$nextPlay",
"isList": false
],
"messages": [
"type": 0,
"speech":
],
"defaultResponsePlatforms": ,
"speech":
],
"priority": 500000,
"cortanaCommand":
"navigateOrService": "NAVIGATE",
"target": ""
,
"webhookUsed": true,
"webhookForSlotFilling": false,
"lastUpdate": 1542252675,
"fallbackIntent": false,
"events": [
"name": "actions_intent_NEXT"
],
"userSays": [
"id": "e28a4087-2bf9-494d-9790-c7347f870ee4",
"data": [
"text": "next song",
"alias": "nextPlay",
"meta": "@nextPlay",
"userDefined": true
],
"isTemplate": false,
"count": 0,
"updated": 1542249008,
"isAuto": false
,
"id": "7a8cf2a2-d131-490d-977d-1212f4642f52",
"data": [
"text": "next",
"alias": "nextPlay",
"meta": "@nextPlay",
"userDefined": true
],
"isTemplate": false,
"count": 0,
"updated": 1542248700,
"isAuto": false
],
"followUpIntents": ,
"liveAgentHandoff": false,
"endInteraction": false,
"templates":
node.js dialogflow actions-on-google
node.js dialogflow actions-on-google
edited Nov 15 '18 at 4:33
Huy Tower
asked Nov 15 '18 at 3:59
Huy TowerHuy Tower
3,89194072
3,89194072
Catching these events during playback is currently not supported. You can file a feature request: developers.google.com/actions/support
– Leon Nicholls
Nov 15 '18 at 16:58
add a comment |
Catching these events during playback is currently not supported. You can file a feature request: developers.google.com/actions/support
– Leon Nicholls
Nov 15 '18 at 16:58
Catching these events during playback is currently not supported. You can file a feature request: developers.google.com/actions/support
– Leon Nicholls
Nov 15 '18 at 16:58
Catching these events during playback is currently not supported. You can file a feature request: developers.google.com/actions/support
– Leon Nicholls
Nov 15 '18 at 16:58
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53312240%2fmedia-player-is-playing-get-confused-to-catch-custom-next-intent%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53312240%2fmedia-player-is-playing-get-confused-to-catch-custom-next-intent%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Catching these events during playback is currently not supported. You can file a feature request: developers.google.com/actions/support
– Leon Nicholls
Nov 15 '18 at 16:58