私はBotFrameworkを使用してボットプロジェクトに取り組んでおり、ボットに表示するためにいくつかのビデオを使用しています。ここで問題は、ローカルでビデオを表示しているときに正常に機能し、Skypeに構成しているときにビデオが1つしか表示されないことですスカイプで。
コードは次のようになります。
private async void TrailersList(IDialogContext context, Activity message)
{
Activity replyToConversation = message.CreateReply("Welcome to **MyApp**." + "(Hi)");
replyToConversation.Recipient = message.From;
replyToConversation.Type = "message";
replyToConversation.Attachments = new List<Attachment>();
Dictionary<string, string> cardContentList = new Dictionary<string, string>();
cardContentList.Add("Jason Bourne", "");
cardContentList.Add("The Land", "");
cardContentList.Add("Yoga Hosers", "");
foreach (KeyValuePair<string, string> cardContent in cardContentList)
{
if (cardContent.Key == "Jason Bourne")
{
replyToConversation.Attachments.Add(new Attachment()
{
ContentUrl= "https://ce5qxa-bn1306.files.1drv.com/y3m9N1SkzBRmwSTd_OZgBWhsAVBzHi5ij025q-W0Cy_6CHHvm8brMaawS-yx8_MhbmdRsBuIX3hHfhnK-NETDwTeFkbwaisO0Pz72XASgzoeGauFue6E1Vt8N_1aolF0yGgCUQCKpFHHNKXE4hiC5jOjffXbs_sn_JGtnWttUdvBOg/Jason%20Bourne%20Official%20Trailer%20%231%20(2016)%20-%20Matt%20Damon%2C%20Alicia%20Vikander%20Movie%20HD%20(2).mp4",
ContentType = "video/mp4",
Name = "Jason Bourne"
});
}
else if (cardContent.Key == "The Land")
{
replyToConversation.Attachments.Add(new Attachment()
{
ContentUrl = "https://fk5qxa-bn1306.files.1drv.com/y3mUNjU5jaVGRSYFQUv0Vt2Tged9t9HtB8OTT4yhtGFYQVW6l3LZTaqi-2UDLbCNZ9fYXIMBbwrPi7vFQx5mdkSgPkXwyAHQZF5FRu3h2lIA_GFqMVCO-u0OZ6q1hufxrzJyUfkI1FS6d8ziiL3ANoOu-urUdJcDcOyoWTICKlvp-E/The%20Land%20Official%20Trailer%201%20(2016)%20-%20Moises%20Arias%2C%20Machine%20Gun%20Kelly%20Movie%20HD%20(1).mp4",
ContentType = "video/mp4",
Name = "The Land"
});
}
else if (cardContent.Key == "Yoga Hosers")
{
replyToConversation.Attachments.Add(new Attachment()
{
ContentUrl = "https://fu5qxa-bn1306.files.1drv.com/y3mYZrh1Hxvu5Zffo2EDTI35N3Tuuce-Un-f5LaRmISDa9MMX-Q1sOD50YN2mPcGngVkGUJuFMGgPi98GJpRdhHiqHs3z-ZEvpxrD2zhus0u1LVdHcST3Oaay0TmE-7zxfmt1TFonYSSjsx4YJP2Y1T0UbNVjIrVU3nE7oZ5YX_D-Q/Yoga%20Hosers%20TRAILER%20(2016)%20-%20Johnny%20Depp%2C%20Justin%20Long%20Movie%20HD%20(1).mp4",
ContentType = "video/mp4",
Name = "Yoga Hosers"
});
}
}
replyToConversation.AttachmentLayout = AttachmentLayoutTypes.List;
await context.PostAsync(replyToConversation);
}
Skype で通話すると、次のようなビデオが表示され、正常に再生されます。