If you want to show a video on your website there are multiple ways to do that. However, if you want to add the custom video using HTML5 you need to use the video tag.
Some users have reported that they get the Browser does not support this video tag error while trying to add a video to their website. This error can occur due to several reasons including incompatible video format as well as wrong syntax.
Follow the troubleshooting tips given below to fix the Browser does not support the video tag error in Firefox, Chrome, and other web browsers.
Why can’t I add videos using HTML5 to my website?
1. Change MP4 to H264-MPEG-4 AVC Format
- If your video is in MP4, it is possible that browser like Chrome may not support the format anymore.
- This issue can only affect Chrome browser and you might be able to play the same video on other browsers like Firefox and IE.
- The solution here is to change the video format using a video converter and convert the MP4 video into H264-MPEG-4 AVC. However, if that does not work you may want to add a custom piece of js code to force the Chrome show Mp4 videos without the error.
2. Disable Hardware Acceleration
- Launch Firefox and click on the Menu.
- Select Options.
- Under Options, scroll down to Performance section.
- By default “Use recommended performance settings” option is enabled.
- Uncheck ” Use recommended performance settings” option.
- Now uncheck ” Use hardware acceleration when available“.
- Close Firefox browser and relaunch it. Try to use the video tag again and check for any improvements.
For Google Chrome
- Launch Google Chrome.
- Click on the Menu and select Settings.
- Scroll down and click on Advanced button.
- Again scroll down to System section.
- Click the toggle switch for “Use hardware acceleration when available” to turn it off.
- Close and relaunch Google Chrome browser.
- Now try to use the video tag and check for any improvements.
Note: Microsoft Edge Chromium users can follow the steps for Chrome to disable hardware acceleration.
If you’re looking for a privacy-compliant browser that’s less prone to glitches and errors, we recommend downloading UR Browser.
For more information about this browser solution, check out our in-depth review.
3. Check the Video Path
- The browser does not support the video tag can also occur if the video path used with the video tag is incorrect.
- Make sure you have used the right video/image path with the video tag to resolve the error.
Check HTML5 Doctype
- Another reason why this error can occur is wrong HTML doctype.
- Make sure you are using HTML5 doctype shown below:
- Make sure you use this doctype and check again if the video tag issue occurs.
RELATED STORIES YOU MAY LIKE:
- 5 best software for GoPro videos
- What is the best browser for enterprise you can fully rely on?
- 6 best video animation software to use