【发布时间】:2021-10-14 01:42:14
【问题描述】:
当我的用户点击时间线链接时,如何从特定时间开始播放视频。下面粘贴的是我的聊天窗口中显示的视频卡。(不在 html/网页上)
我的视频卡如下所示,作为对聊天消息的响应
public Attachment GetVideoCard()
{
var videoId = "38ef226cb5";
var videoCard = new VideoCard
{
Title = "Oil and Gas Industry Basics",
Subtitle = "by abcd",
Text = "In this Oil and Gas Industry Overview, we discuss the history of oil and gas production, three sectors of the industry—upstream, midstream, and downstream, geologic formations, types of oil and gas wells, and the makeup of a well stream.",
Image = new ThumbnailUrl
{
Url = "someimage.png"
},
Media = new List<MediaUrl>
{
new MediaUrl()
{
Url =$"https://youtu.be/O-qiUD9TEtQ"
}
},
Buttons = new List<CardAction>
{
new CardAction()
{
Title = "Learn More",
Type = ActionTypes.OpenUrl,
Value = "https://peach.blender.org/"
}
}
};
return videoCard.ToAttachment();
}
当我的聊天机器人用户点击时间线时,我如何启动我的视频卡以从他们点击的特定时间线链接开始播放视频?
我提到的上述用例是来自 youtube 的视频。 如果视频来自 MSstreams 的视频,上述 videoCard 将如何工作? 任何有用的示例或文件?
注意:我不想跳到打开 YouTube 播放视频,但更喜欢从聊天机器人自适应卡/视频卡中播放视频时间。
【问题讨论】:
-
你用的是什么客户端?答案很大程度上取决于客户端及其功能,而不是机器人。
-
我正在使用 MS bot 框架 v4。我们要展示的视频来自 MS Streams,一些存储在 SharePoint 位置,一些来自 YouTube,一些视频来自 azure blob 存储,还有一些来自 OneDrive
-
接受/投票支持更大的 Stack Overflow 社区和任何有类似问题的人。如果您觉得我的回答足够,请“接受”并点赞。如果没有,请告诉我我还能提供哪些帮助!
标签: c# botframework chatbot adaptive-cards