Platform
Author or host
Host (Teams)
Version of SDK
1.2.5
Details
Fallback rendering for custom renderer fails while fallback element is text.
Steps -
1/ create a custom renderer for ACRMedia
2/ Throw a ACOFallbackException in render
try the below JSON
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.1",
"fallbackText": "This card requires Media to be viewed. Ask your platform to update to Adaptive Cards v1.1 for this and more!",
"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"
}
],
"fallback": {
"type": "FactSet",
"facts": [
{
"title": "Fact 1",
"value": "Value 1"
},
{
"title": "Fact 2",
"value": "Value 2"
}
]
}
}
]
}
Platform
Author or host
Host (Teams)
Version of SDK
1.2.5
Details
Fallback rendering for custom renderer fails while fallback element is text.
Steps -
1/ create a custom renderer for ACRMedia
2/ Throw a ACOFallbackException in render
try the below JSON
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.1",
"fallbackText": "This card requires Media to be viewed. Ask your platform to update to Adaptive Cards v1.1 for this and more!",
"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"
}
],
"fallback": {
"type": "FactSet",
"facts": [
{
"title": "Fact 1",
"value": "Value 1"
},
{
"title": "Fact 2",
"value": "Value 2"
}
]
}
}
]
}