Open philfry opened 5 years ago
What's a card?
I believe it's some kind of new way to display a static picture or a animate gif/webm/whatever. It's not implemented in web.skype.com so you'll probably need the official client to display it. Edit: yup, this "card" shows up when sharing "Bing GIFs", "Pictures", "Microsoft To-Do", "Bing Restaurants" and stuff. It's not related to inserting "media", "contacts" or "location".
I can confirm this bug. On my system, in both Pidgin, and Spectrum2, these "cards" are trailed by large sloths of base64 encoding.
<URIObject type="SWIFT.1" url_thumbnail="https://urlp.asm.skype.com/v1/url/content?url=https://neu1-urlp.secure.skypeassets.com/static/card-128x128.png">To view this card, go to: https://go.skype.com/cards.unsupported<Title><Swift b64="eyJ0eXBlIjoibWVzc2FnZS9jYXJkIiwiYXR0YWNobWVudHMiOlt7ImNvbnRlbnRUeXBlIjoiYXBwbGljYXRpb24vdm5kLm1pY3Jvc29mdC5jYXJkLmZsZXgiLCJjb250ZW50Ijp7InNoYXJlYWJsZSI6dHJ1ZSwic3VidGl0bGUiOiJGb3VuZCBvbiBUZW5vci5jb20iLCJpbWFnZXMiOlt7ImFsdCI6IlRvbWF0byBTYWQgR0lGIiwidXJsIjoiaHR0cHM6Ly9tZWRpYS50ZW5vci5jb20vaW1hZ2VzL2EzMzUzODRkOTZjMmZjODA4MzEzOWMzODVmNzI1ZGI3L3Rlbm9yLmdpZiIsInRhcCI6eyJ0eXBlIjoic2hvd0ltYWdlIn0sInR5cGUiOiJpbWFnZS9naWYiLCJzdGlsbFVybCI6Imh0dHBzOi8vbWVkaWEudGVub3IuY29tL2ltYWdlcy82ZDAyNmExODM1MzkxNGFjMzVkMDNlYTg5YzA2ZTYxYy90ZW5vci5wbmciLCJmcmFtZXMiOjB9XSwiYXNwZWN0IjoiMzIwOjE4MCIsImRpbWVuc2lvbnMiOnsid2lkdGgiOjMyMCwiaGVpZ2h0IjoxODB9fX1dfQ=="/>
The base64decode of that one gives
{
"type": "message/card",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.flex",
"content": {
"shareable": true,
"subtitle": "Found on Tenor.com",
"images": [
{
"alt": "Tomato Sad GIF",
"url": "https://media.tenor.com/images/a335384d96c2fc8083139c385f725db7/tenor.gif",
"tap": {
"type": "showImage"
},
"type": "image/gif",
"stillUrl": "https://media.tenor.com/images/6d026a18353914ac35d03ea89c06e61c/tenor.png",
"frames": 0
}
],
"aspect": "320:180",
"dimensions": {
"width": 320,
"height": 180
}
}
}
]
}
Hi, when someone with a "real" skype client send a "card" it is shown as
("to view this card, go to …"). In web.skype.com the same message is shown as
decoding the base64 string results in:
Are there any plans on supporting those kind of messages?