【发布时间】:2019-07-13 05:26:59
【问题描述】:
我正在使用 Microsoft 虚拟助手模板来创建我的聊天机器人。想在我的 azure 聊天机器人中显示显示视频。但视频无法正常工作,尤其是当视频来自 corp sharepoint 位置时。我猜这是由于身份验证问题。如何发送登录用户令牌以在我的聊天窗口中显示视频。
public static VideoCard GetVideoCard()
{
var videoCard = new VideoCard
{
Title = "This my Title",
Subtitle = "by the subtitle",
Text = "t is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. distribution of letters,." +
" t is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.ution of letters,.",
Image = new ThumbnailUrl
{
Url = "https://mycompany.rev.vbrick.com/#/videos/11111-db89-11111-b39d-111111",
},
Media = new List<MediaUrl>
{
new MediaUrl()
{
Url="https://mycompany.rev.vbrick.com/#/videos/11111-db89-4bc3-b39d-111111",
},
},
Buttons = new List<CardAction>
{
new CardAction()
{
Title = "Learn More",
Type = ActionTypes.OpenUrl,
Value = "https://mycompany.rev.vbrick.com/#/videos/1111-db89-4bc3-b39d-1111",
},
},
};
return videoCard;
}
【问题讨论】:
-
我一直在努力让这个为你工作。到目前为止,我可以确认让机器人下载视频并将其作为 base64 发送不起作用——这通常是我们对图像所做的,但它不适用于视频...... base64 字符串很可能太长了。
-
@mdrichardson 我现在正在努力将 AD 身份验证集成到我的虚拟助手模板中。
标签: c# botframework chatbot