# MediaSource
Cardscript
Defines a source for a Media element
# Example
{
"type": "AdaptiveCard",
"body": [
{
"type": "Media",
"poster": "https://adaptivecards.io/content/poster-video.png",
"sources": [
{
"mimeType": "video/mp4",
"url": "https://adaptivecardsblob.blob.core.windows.net/assets/AdaptiveCardsOverviewVideo.mp4"
}
]
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.0"
}
# Required properties
# type
Whether the media is audio or video.
- Type:
string
- Values:
video
audio
# mimeType
Mime type of associated media (e.g. "video/mp4"
).
- Type:
string
# url
URL to media.
- Type:
string
- Format:
uri
(opens new window)
# JSON Schema
{
"additionalProperties": true,
"type": "MediaSource",
"description": "Defines a source for a Media element",
"version": "1.1",
"properties": {
"type": {
"type": "string",
"description": "Whether the media is audio or video.",
"enum": [
"video",
"audio"
]
},
"mimeType": {
"type": "string",
"description": "Mime type of associated media (e.g. `\"video/mp4\"`)."
},
"url": {
"type": "string",
"format": "uri",
"description": "URL to media."
}
},
"required": [
"type",
"mimeType",
"url"
],
"typeSafe": "media-source",
"example": "FIXME!",
"propertySummary": [
{
"name": "type",
"type": "string",
"required": "Required",
"text": "Whether the media is audio or video."
},
{
"name": "mimeType",
"type": "string",
"required": "Required",
"text": "Mime type of associated media (e.g. `\"video/mp4\"`)."
},
{
"name": "url",
"type": "string",
"required": "Required",
"text": "URL to media."
}
]
}