-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
VSCode >= 1.13 greys out audio controls in previewHTML? #32540
Comments
I get the above when opening a markdown as html; probably due to this. So I guess it is more a security feature that it doesn't work. |
I don't think it's CSP related, the following renders the image ok:
|
Oh, from the same version on, it seems that video is also not working (still using the HTML preview to check the rendering)?
|
Yes, the markdown preview would block http video by default but the previewHtml content should not have any Content Security policy set. Looking at the network requests for the webview, I do see the video file being requested successfully but there seems to be some error with the playback inside the webview. I'll investigate further |
Actually, I just learned that we strip out ffmpeg and other media support from our release builds. This is by-design and something we will not change, but it does mean that many types of media playback will never be supported in webviews inside vscode |
Steps to Reproduce:
<audio controls autoplay src="http://media.w3.org/2010/07/bunny/04-Death_Becomes_Fur.oga"></audio>
This is broken from 1.13 on, before that previewing audio just worked.
Reproduces without extensions: unknown
The text was updated successfully, but these errors were encountered: