Schema Explorer

Choose element:

NEW

Are you building Copilot, Teams or Outlook scenarios powered by Adaptive Cards?

The Adaptive Card Documentation Hub is the new one-stop-shop for all your Adaptive Card needs! It has all the resources you're looking for, including complete documentation for many new features, such as Responsive layout, Icon, Badge, Carousel, Charts, and much more!

Important note about accessibility: In version 1.3 of the schema we introduced a label property on Inputs to improve accessibility. If the Host app you are targeting supports v1.3 you should use label instead of a TextBlock as seen in some samples below. Once most Host apps have updated to the latest version we will update the samples accordingly.

MediaSource

Defines a source for a Media element

Introduced in version 1.1

Property Type Required Description Version
url uri Yes URL to media. Supports data URI in version 1.2+ 1.1
mimeType string No Mime type of associated media (e.g. "video/mp4"). For YouTube and other Web video URLs, mimeType can be omitted. 1.1

Properties

mimeType

Mime type of associated media (e.g. "video/mp4"). For YouTube and other Web video URLs, mimeType can be omitted.

  • Type: string
  • Required: No

url

URL to media. Supports data URI in version 1.2+

  • Type: uri
  • Required: Yes