Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

media does not show on the chat #2272

Closed
maysamdabbagh opened this issue Jan 4, 2019 · 5 comments
Closed

media does not show on the chat #2272

maysamdabbagh opened this issue Jan 4, 2019 · 5 comments

Comments

@maysamdabbagh
Copy link

Platform

What platform is your issue or question related to? (Delete other platforms).

  • .NET HTML
  • .NET WPF
  • Android
  • iOS
  • JavaScript
  • UWP

Author or host

Are you an author (like sending something to Outlook), or a host that is rendering your own cards?

If you're an author, who are you sending cards to?

Version of SDK

What version are you using? Ex: NuGet 1.0.2, or latest master, etc...

Issue

Explain your issue. If you just have a question, please post on StackOverflow instead.

@maysamdabbagh
Copy link
Author

maysamdabbagh commented Jan 4, 2019

I am trying the following sample adaptive card but when the bot return card it does not have the media and it just shows the action as shown in the image.

Am I missing anything on the json?

image

{
"type": "AdaptiveCard",
"body": [
{
"type": "Media",
"poster": "https://adaptivecards.io/content/poster-video.png",
"altText": "Sample Alt Text",
"sources": [
{
"mimeType": "video/mp4",
"url": "https://adaptivecardsblob.blob.core.windows.net/assets/AdaptiveCardsOverviewVideo.mp4"
}
]
}
],
"actions": [
{
"type": "Action.OpenUrl",
"title": "Action.OpenUrl"
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.0"
}

@matthidinger
Copy link
Member

Hi @maysamdabbagh, the Bot Framework WebChat control doesn't currently bundle the v1.1 release which is when Media was introduced. @compulim is it possible for him to replace the adaptive cards renderer lib in WebChat with the 1.1 build or does he have to wait until your next release?

@maysamdabbagh
Copy link
Author

maysamdabbagh commented Jan 14, 2019

Hi @compulim and @matthidinger
Any update on this one?

@compulim
Copy link
Contributor

@corinagum Let's look at this one in our triage.

@corinagum
Copy link
Contributor

Sorry for the delay in getting back to you! Had to learn a little about our upcoming release plans.

Right now, it is not possible for @maysamdabbagh to update his Adaptive Cards library before we upgrade to Adaptive Cards 1.1.
Upgrading from v3 to v4 of Web Chat on Azure Portal for the embed story (@maysamdabbagh looks to be using v3 right now) is high on our priority list, and that item can be tracked here: microsoft/BotFramework-WebChat#1086. Once this item is complete, this will mean that all bots are able to use the latest Adaptive Cards release.

Upgrading to v4 by using the CDN or NPM method (and using the v4 development build of Web Chat) will allow users to use the updated Adaptive Cards library immediately.

As for choosing your own Adaptive Cards library, for those who are using CDN or NPM, updating to v4 will eventually allow users to use their preferred version of Adaptive Cards, with the library being used as a component instead of part of the bundle. That issue can be tracked in microsoft/BotFramework-WebChat#1558. This will probably not be implemented before 1086, but in case you are interested please feel free to track that issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants