团队中的Botframework问题:显示视频卡的显示并导致对话框冻结



以下问题在模拟器中效果很好,但在团队中失败。

对话框打开QNA制造商对话框。在QNA提示开始之前 - 用户第一次进入对话框时会获得视频卡。我最初认为在团队中使用QNA制造商存在一些问题 - 但是在一时兴起,我评论了该步骤的视频卡部分(或更准确地说是……所有以下代码) - 现在可以使用!

下面是否有一个问题可以冻结步骤(仅在团队中)将不胜感激!(团队中的录像带有任何问题吗?)

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/thirdwaterdialdialog.cs

Azure Portal中的错误:2/6/2019,1:19:24 pm畸形的视频卡 - 无效的方面值

  • 我最初在这里报告了这个问题,以查看团队中的视频卡是否存在更广泛的问题:https://github.com/microsoft/botbuilder/issues/5270

视频卡不受Microsoft团队的支持。

您可以使用任务模块允许您在团队应用程序中创建模态弹出体验。在弹出窗口内,您可以运行自己的自定义HTML/JavaScript代码,显示基于YouTube或Microsoft Stream视频的基于限制的小部件,或显示自适应卡。

最新更新