使用video.js文件报错:Failed to load resource: net::ERR_FILE_NOT_FOUND的解决办法
来源:互联网 发布:手机淘宝拍图片搜索 编辑:程序博客网 时间:2024/06/05 03:33
使用video.js文件报错:
file://www.google-analytics.com/__utm.gif?utmwv=5.4.2&utmac=UA-16505296-2&u…Fexample.html&utmcc=__utma%3D1.5782357959.1.1.1.1%3B&utme=8(vjsv)9(v4.3.0)Failed to load resource: net::ERR_FILE_NOT_FOUND
video.js:6 'webkitMovementX' is deprecated.Please use 'movementX' instead.
video.js:6 'webkitMovementY' is deprecated.Please use 'movementY' instead.
解决办法参考这篇文章:http://stackoverflow.com/questions/22671994/jquery-will-not-load-because-it-cant-be-found
分析:出现该问题的原因是因为所用的html是本地的网页文件。
这篇文章内容如下:
My html page don't works because my script is not loading. The script I'm using is as follows:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
This is the error:
Failed to load resource: net::ERR_FILE_NOT_FOUNDfile://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js
Can you see the problem? I just copied the scripts src from google hosted libraries.
3 Answers
I think you're testing this using an HTML file on your local file system. //
with no protocol specified is assuming file://
because of this.
You need put http:// before the URL. Try it:http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js
http:
is generally better, because it can infer http:
or https:
. It's just that in this case, it's inferring file:
, which is not what is wanted. – Tim Goodman Mar 27 '14 at 17:03Only posting to help anyone else who did what i did. I spent hours trying to figure out why i was getting about a 100 of these errors. I had forgot i was messing around with ngRoute and had placed <base href="/">
in my index.html. After removing it everything works again.
- 使用video.js文件报错:Failed to load resource: net::ERR_FILE_NOT_FOUND的解决办法
- Nginx反向代理上传大文件报错(failed to load resource : net :: ERR_CONNECTION_RESET)
- Failed to load resource: net::ERR_INCOMPLETE_CHUNKED_ENCODING的一次修复
- Spring MVC json报406错误的解决办法 Failed to load resource: the server responded with a status of 406
- Chrome Failed to load resource: net::ERR_CACHE_MISS
- Failed to load resource: net::ERR_INCOMPLETE_CHUNKED_ENCODING
- Failed to load resource: net::ERR_CACHE_MISS
- Failed to load resource: net::ERR_CONNECTION_TIMED_OUT
- Failed to load resource: net::ERR_CONNECTION_REFUSED
- svn 报Failed to load JavaHL Library.错误的解决办法
- nc6报错 Failed to load ESAPI.properties as a classloader resource.
- nc6报错 Failed to load ESAPI.properties as a classloader resource.
- nc6报错 Failed to load ESAPI.properties as a classloader resource.
- 微信小程序Failed to load resource: net::ERR_NAME_NOT_RESOLVED问题解决办法
- openlayers出现Failed to load resource: net::ERR_UNKNOWN_URL_SCHEME这个问题
- 新建项目报错,Failed to execute appt 错误,导致R文件报错的解决办法
- Failed to load session “ubuntu”的解决办法
- Failed to load JavaHL Library的解决办法
- C#继承1
- AssetsLibrary框架简单介绍
- 欢迎使用CSDN-markdown编辑器
- 第1章:Introduction
- apache Setting on ubuntu
- 使用video.js文件报错:Failed to load resource: net::ERR_FILE_NOT_FOUND的解决办法
- 固定比例01环的均匀分布问题
- 利用Broadcast实现强制下线
- 基于canvas的图片轮播(h5)
- Python实现N阶台阶的走法问题
- CSDN第一篇:处女座
- Word Search
- Android Simple And Powerful Cache Manager
- select函数的使用举例
http://
orhttps://
depending on what protocol is used to load the page. – Tim Goodman Mar 26 '14 at 20:25