ChatBoT自适应视频卡---来自sharepoint的媒体Urls无法正常工作

时间:2019-06-19 16:21:22

标签: c# azure botframework chatbot adaptive-cards

我正在尝试显示一些自适应视频卡,其中包含我们共享点视频库中的视频。但是这些视频不起作用/无法播放。我能够播放来自youtube的视频,但不能播放来自共享点的视频。 我可以直接从浏览器直接播放那些共享点视频。 如何使此类共享点托管的视频在聊天机器人窗口中播放?

我还尝试了使用自定义自适应卡,但是共享点中的视频或以som GUID结尾的视频无法播放

{
  "type": "AdaptiveCard",
  "body": [
    {
      "type": "Media",
      "poster": "https://adaptivecards.io/content/poster-video.png",
      "sources": [
        {
          "mimeType": "video/mp4",
          "url": "https://mycompany.rev.vbrick.com/sharevideo/11c03e23-978d-4832-a05f-1cfe8c4f1f70"
        }
      ]
    }
  ],
  "actions": [
    {
      "type": "Action.OpenUrl",
      "title": "Learn more",
      "url": "https://adaptivecards.io"
    }
  ],
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "version": "1.1",
  "fallbackText": "This card requires Media to be viewed. Ask your platform to update to Adaptive Cards v1.1 for this and more!"
}

这是我的视频卡示例代码

enter image description here

0 个答案:

没有答案