Google动作MediaResponse在某些设备上不起作用 [英] Google action MediaResponse not working on some devices

查看:75
本文介绍了Google动作MediaResponse在某些设备上不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们目前正在与新发布的 https://developers.google.com/actions/reference/rest/Shared.Types/AppResponse#mediaresponse

we are currently playing around with newly launched https://developers.google.com/actions/reference/rest/Shared.Types/AppResponse#mediaresponse

根据文档,我们将收到最终回复媒体播放完毕后.这在模拟器中效果很好,但在移动设备和扬声器上可以间歇性地工作

According to documentation we will receive a final Response after media is finished playing. This works well in simulator but on mobile devices and speakers it works intermittently

我们只能回电2到3次,有时也不会在任何一个设备上回电.由于它可以运行几次,因此我们确定它只是Google引擎,但希望确保我们自己没有做错任何事情.

We only get this call back 2 or 3 times and sometimes never get it on either devices. As it works few times we are sure it's just google engine but want to make sure we are not doing anything wrong ourselves.

我正在使用自己的后端并拥有我们的引擎(Action SDK).播放结束时,我期望得到此响应,但是我只能间歇性地得到它:

I am using my own backend and have our engine (Action SDK). I am expecting this response when playback finishes, but I only get this intermittently:

{
  "user": {
    "userId": "user-id",
    "accessToken": "access-token",
    "locale": "en-US",
    "lastSeen": "2018-03-18T17:44:51Z"
  },
  "conversation": {
    "conversationId": "1521395430917",
    "type": "ACTIVE",
    "conversationToken": "42"
  },
  "inputs": [{
    "intent": "actions.intent.MEDIA_STATUS",
    "rawInputs": [{}],
    "arguments": [{
      "name": "MEDIA_STATUS",
      "extension": {
        "@type": "type.googleapis.com/google.actions.v2.MediaStatus",
        "status": "FINISHED"
      }
    }]
  }],
  "surface": {
    "capabilities": [
      {"name": "actions.capability.SCREEN_OUTPUT"},
      {"name": "actions.capability.AUDIO_OUTPUT"},
      {"name": "actions.capability.WEB_BROWSER"}, 
      {"name": "actions.capability.MEDIA_RESPONSE_AUDIO"}
    ]
  },
  "isInSandbox": true,
  "availableSurfaces": [
    {"capabilities": [
      {"name": "actions.capability.SCREEN_OUTPUT"}, {"name": "actions.capability.AUDIO_OUTPUT"}
    ]}
  ]
}

推荐答案

这似乎确实是Google的错误.您应该填写支持表格并指定

That does appear to be a bug on Google's end. You should fill out a support form and specify

  • 您的项目ID
  • 这是一个错误报告
  • 这是与Action SDK一起使用的
  • 期望您没有收到MEDIA_STATUS事件
  • 确切地说是从用户端听起来(用户听到了什么?音频结束,然后又是什么?)

这篇关于Google动作MediaResponse在某些设备上不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆