Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Media element CORS error #9061

Open
IntranetFactory opened this issue Nov 20, 2024 · 1 comment
Open

Media element CORS error #9061

IntranetFactory opened this issue Nov 20, 2024 · 1 comment

Comments

@IntranetFactory
Copy link

Target Platforms

NodeJS

SDK Version

latest

Application Name

Adaptive Card designer & js viewer

Problem Description

I have a Media element with an mp3 for example from http://open.live.bbc.co.uk/mediaselector/6/redir/version/2.0/mediaset/audio-nondrm-download-rss/proto/http/vpid/p0k5xlhh.mp3

The file plays when using a plain <audio src="..."

When using it in a Media element it does not play and CORS error is showing in console. That is probably caused by the crossorigin attribute added by the Adaptive Card runtime.

How do I disable the unwanted attribute and/or play mp3 files hosted on servers which I do not control?

Screenshots

No response

Card JSON

.

Sample Code Language

No response

Sample Code

No response

@IntranetFactory
Copy link
Author

Bug is caused by https://github.com/microsoft/AdaptiveCards/blame/main/source/nodejs/adaptivecards/src/card-elements.ts#L2901 where the crossorigin attribute is set unconditionally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant