Schema Explorer

MediaSource

Defines a source for a Media element

Introduced in version 1.1

Property Type Required Description Version
mimeType string Yes Mime type of associated media (e.g. "video/mp4"). 1.1
url string Yes URL to media. 1.1

Example

{
	"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
	"type": "AdaptiveCard",
	"version": "1.1",
	"body": [
		{
			"type": "TextBlock",
			"text": "Media supports **audio** and **video** content!",
			"wrap": true
		},
		{
			"type": "TextBlock",
			"text": "Video",
			"horizontalAlignment": "center",
			"spacing": "medium",
			"separator": true,
			"size": "large"
		},
		{
			"type": "Media",
			"poster": "https://adaptivecards.io/content/poster-video.png",
			"sources": [{
				"mimeType": "video/mp4",
				"url": "https://adaptivecardsblob.blob.core.windows.net/assets/AdaptiveCardsOverviewVideo.mp4"
			}]
		},
		{
			"type": "TextBlock",
			"text": "Audio",
			"horizontalAlignment": "center",
			"separator": true,
			"size": "large"
		},
		{
			"type": "Media",
			"poster": "https://adaptivecards.io/content/poster-audio.jpg",
			"sources": [{
				"mimeType": "audio/mpeg",
				"url": "https://adaptivecardsblob.blob.core.windows.net/assets/AdaptiveCardsOverviewVideo.mp3"
			}]
		}
	]
}
{ "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "1.1", "body": [ { "type": "TextBlock", "text": "Media supports **audio** and **video** content!", "wrap": true }, { "type": "TextBlock", "text": "Video", "horizontalAlignment": "center", "spacing": "medium", "separator": true, "size": "large" }, { "type": "Media", "poster": "https://adaptivecards.io/content/poster-video.png", "sources": [{ "mimeType": "video/mp4", "url": "https://adaptivecardsblob.blob.core.windows.net/assets/AdaptiveCardsOverviewVideo.mp4" }] }, { "type": "TextBlock", "text": "Audio", "horizontalAlignment": "center", "separator": true, "size": "large" }, { "type": "Media", "poster": "https://adaptivecards.io/content/poster-audio.jpg", "sources": [{ "mimeType": "audio/mpeg", "url": "https://adaptivecardsblob.blob.core.windows.net/assets/AdaptiveCardsOverviewVideo.mp3" }] } ] }
Try it Yourself »

Properties

mimeType

Mime type of associated media (e.g. "video/mp4").

  • Type: string
  • Required: Yes

url

URL to media.

  • Type: string
  • Required: Yes
  • Format: uri