Video not loading

Hi Everyone,

I’m trying to embed a video in my webpage but when I bring in an mp4 file it returns the message - ‘The file is not displayed in the editor because it is either binary or uses an unsupported text encoding. Do you want to open anyway?’. This wasn’t happening before and if I say yes, it just displays some ASCII type characters.

Any ideas what the problem might be?

Seun

I wish I could be of help. I’m having the same issue. So its probably not just you. I think VS code updated but I don’t know what to do now

I think this is normal behavior. An mp4 file is a binary file and it’s not something that you would normally edit in VS Code. However you can still embed the video in your webpage using the video tag. For example:

<video controls src="videos/your-video.mp4" />
1 Like