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

问题描述 投票:0回答:1

以下问题在模拟器中正常工作但在团队中失败。

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

是否存在以下问题将冻结步骤(仅限于团队)将非常感谢! (团队中有关VideoCards的任何问题?)

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 / 201,1:19:24 PM格式错误的视频卡 - 无效的宽高比值

botframework microsoft-teams video-card
1个回答
1
投票

微软团队的Video card is not supported

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

© www.soinside.com 2019 - 2024. All rights reserved.