0

以下问题在 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 门户中的错误:2019 年 2 月 6 日下午 1:19:24 视频卡格式错误 - 纵横比值无效

4

1 回答 1

1

Microsoft Teams不支持显卡

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

于 2019-02-13T16:47:43.723 回答