Teams 上的 BotFramework 问题:显示视频卡出错并导致对话框冻结

BotFramework issue on Teams: Displaying of Video Card erroring out and causing dialog to freeze out

以下问题在 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);
            }

以上代码和项目在这里:https://github.com/andrewchungxam/2019ITBot/blob/master/MultiDialogsWithAccessorBotV4/Dialogs/ThirdWaterfallDialog.cs

Azure 门户中的错误: 2/6/2019,1:19:24 PM 显卡格式错误 - 宽高比值无效

Video card is not supported 由微软团队提供。

您可以使用 Task Module 允许您在 Teams 应用程序中创建模式弹出体验。在弹出窗口中,您可以 运行 您自己的自定义 HTML/JavaScript 代码,显示基于 YouTube 或 Microsoft Stream 视频的小部件,或显示自适应卡片。