以下问题在 Emulator 中运行良好,但在 Teams 中失败。
一个对话框打开一个 QnA Maker 对话框。在 QnA 提示开始之前 - 它会在用户第一次进入对话框时获得一个 VideoCard。我最初认为在 Teams 上使用 QnA Maker 存在一些问题 - 但一时兴起,我注释掉了该步骤的视频卡部分(或更准确地说......所有以下代码) - 现在它可以工作了!
下面是否存在会冻结该步骤的问题(仅在 Teams 中)将不胜感激!(团队中的视频卡有任何问题吗?)
var welcomeUserState = await (stepContext.Context.TurnState["DialogBotConversationStateAndUserStateAccessor"] as DialogBotConversationStateAndUserStateAccessor).WelcomeUserState.GetAsync(stepContext.Context);
if (welcomeUserState.DidSeeVideo == false)
{
welcomeUserState.DidSeeVideo = true;
// WaterfallStep always finishes with the end of the Waterfall or with another dialog; here it is a Prompt Dialog.
// Running a prompt here means the next WaterfallStep will be run when the users response is received.
//await stepContext.Context.SendActivityAsync(MessageFactory.Text($"THIRD WATERFALL STEP 1: This is the first step. You can put your code in each of these steps."), cancellationToken);
var reply = stepContext.Context.Activity.CreateReply();
reply.Attachments = new List<Attachment>();
reply.Attachments.Add(GetVideoCard().ToAttachment());
// Send the card(s) to the user as an attachment to the activity
await stepContext.Context.SendActivityAsync(reply, cancellationToken);
await Task.Delay(3000);
}
Azure 门户中的错误:2019 年 2 月 6 日下午 1:19:24 视频卡格式错误 - 纵横比值无效
- 我最初在此处报告了此问题,以查看 Teams 中的视频卡是否存在更广泛的问题:https ://github.com/Microsoft/BotBuilder/issues/5270