Video.js.map throws 404 (not found)

Playing with the newest video.js today, I notice that video.js.map is displayed as 404 when you add a video.js script to the site I'm working on.

I do not see the source map file in the source distribution, but it does not produce this error locally only when I put it on the server.

Ideas for a solution?

+7
source share
3 answers

You have several options if you do not have access to the source map :

  • Ignore the message. It is just generated when your developer tools are open.
  • Delete the link in the source file. These are the last characters (comments) at the end of the file.
  • Create the source map yourself when you have access to the source code. For video.js it can be generated from video.dev.js .
  • Use a publicly available version of the CDN, which may not link to the original map.

This topic also discusses the discussion of GitHub .

+10
source share

I get the same error, everything should work. I think it is html5 or browser error

0
source share

I saw it too, but only in the log files. I got three multi-line recordings (crashes) every time a video was played in my production.log on the RoR site. It really expanded my .log file. Learn more about @smhg 2nd bullet (remove links). I use video.js 5.4.6 along with some vpad-huge plugins - I could see all three files mentioned in my .log file. Your mileage may vary.

Modify video.js and delete the following entry on line 19694:

 //# sourceMappingURL=video.js.map 

(vpaid-vast plugin only ...)

Modify videojs_5.vast.vpaid.min.js and remove this line from the very end:

 //# sourceMappingURL=videojs_5.vast.vpaid.min.js.map 

Modify videojs.vast.vpaid.min.css and remove this line from the very end:

 /*# sourceMappingURL=videojs.vast.vpaid.min.css.map */ 

Entries no longer appear in my log file, and the player works fine.

Hope this helps!

0
source share

All Articles