botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

Add a Duration property to media card types

Open yochay opened this issue 8 years ago • 8 comments

From @JonathanFingold on October 25, 2018 19:28

Is your feature request related to a problem? Please describe. The cards spec was updated to include a media duration. I can't find a corresponding member in the Microsoft.Bot.Schema namespace, or a PR containing one.

Describe the solution you'd like

  1. Add a Duration property to media cards.
  2. Bonus: update the 06.using-cards samples.

Describe alternatives you've considered Just pointing users to the Card schema spec.

Additional context https://github.com/Microsoft/BotBuilder/pull/5094

[enhancement]

Copied from original issue: Microsoft/botbuilder-dotnet#1062

yochay avatar Oct 25 '18 21:10 yochay

Need to tag botbuilder and regenerate schema lib for C# and JS (and Java , Python).

yochay avatar Oct 25 '18 21:10 yochay

From @JonathanFingold on October 25, 2018 21:14

@yochay Do you have an ETA? I was hoping to use this issue to flag when the fix was in, so I could update the docs.

yochay avatar Oct 25 '18 21:10 yochay

Moved from https://github.com/Microsoft/botbuilder-dotnet/issues/1062 Requires updates for all SDK Language.

yochay avatar Oct 25 '18 21:10 yochay

General consensus in standup is that you should do this and Kernel Major will review.

sgellock avatar Apr 03 '19 20:04 sgellock

Per conversations with @yochay, resolving won't fix

sgellock avatar Apr 17 '19 13:04 sgellock

@sgellock , I still need to do something about this in the docs. What is the gist of the conversation you had with Yochay?

JonathanFingold avatar Apr 17 '19 15:04 JonathanFingold

@sgellock and @JonathanFingold this should be resolved as fixed. Duration is in the the schema for both JS and C# for 4 types of cards - see pointers to Schema and classes here under.

Duration is missing from WebChat control. @compulim has more info on that.

We can update the Cards sample, but without ability to show the duration in the cards (See WebChat comment above), there is little value in it.

@JonathanFingold , what updates do you need for the docs? Can you point to the current docs to get idea of how you refer to other properties on cards?

schema updates

  • AnimationCards: (C#); JS

  • AudioCard: C#; JS

  • MediaCard: C#; JS

  • VideoCard: C# ; JS

autogenerated classes include Duration

  • AnimationCard: C# ; JS

  • AudioCard: C# ; JS

  • MediaCard: C# ; JS

  • VideoCard: C# ; JS

yochay avatar Apr 17 '19 17:04 yochay

@yochay I think the changes in the Schema namespace address my concern, which was mainly about the mismatch between the spec and the SDK.

JonathanFingold avatar Apr 18 '19 15:04 JonathanFingold