Comments (7)
是本地资源不支持断点续传吗还是
from hexo-tag-dplayer.
你可以试着直接用浏览器打开这个文件
- 如果同样情况,是HTTP服务器/浏览器的问题
- 如果能用,再试着使用dplayer的范例播放视频
-
- 如果同样情况,是dplayer的问题 向dplayer反馈
-
- 如果能用,尽可能详细的告诉我你的环境(系统版本 浏览器版本 node hexo-tag-dp dplayer的版本 视频文件编码 格式等等
from hexo-tag-dplayer.
本地文件不支持
from hexo-tag-dplayer.
@DIYgod 我猜他说的是hexo自带的预览模式 http://localhost:4000/somePath/someFile.mp4 这种算是本地么
(最近沉迷做python的coolq嵌入 沉迷的不行都没看邮件。。。
from hexo-tag-dplayer.
@dixyes 应该也算
from hexo-tag-dplayer.
localhost 也是一种本地服务器,对浏览器而言,和网络服务器没任何区别。
我觉得这个问题是要看本地服务器支不支持 Range 。
from hexo-tag-dplayer.
emmm 好像是hexo的锅
>C:\Users\DIXXPS\Desktop\pycompact>curl http://localhost:4000/blog/x.mp4 -H"Range: bytes=1000-1012" -vvv --output -
* Trying ::1...
* TCP_NODELAY set
* Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 4000 (#0)
> GET /blog/x.mp4 HTTP/1.1
> Host: localhost:4000
> User-Agent: curl/7.55.1
> Accept: */*
> Range: bytes=1000-1012
>
< HTTP/1.1 200 OK
< X-Powered-By: Hexo
< Content-Type: video/mp4
< Date: Fri, 31 Aug 2018 14:31:15 GMT
< Connection: keep-alive
< Transfer-Encoding: chunked
<
(一坨乱码二进制) * Failed writing body (4096 != 16384)
* Failed writing data
* Closing connection 0
curl: (23) Failed writing body (4096 != 16384)
http-server的正确响应:
C:\Users\DIXXPS\Desktop\pycompact>curl http://localhost/x.mp4 -H"Range: bytes=1000-1012" -vvv --output -
* Trying ::1...
* TCP_NODELAY set
* connect to ::1 port 80 failed: Connection refused
* Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 80 (#0)
> GET /x.mp4 HTTP/1.1
> Host: localhost
> User-Agent: curl/7.55.1
> Accept: */*
> Range: bytes=1000-1012
>
< HTTP/1.1 206 Partial Content
< server: ecstatic-3.2.0
< Content-Range: bytes 1000-1012/173181126
< Accept-Ranges: bytes
< Content-Length: 13
< Content-Type: video/mp4; charset=utf-8
< cache-control: max-age=3600
< last-modified: Thu, 29 Jun 2017 10:49:04 GMT
< etag: W/"2814749767885134-173181126-"2017-06-29T10:49:04.000Z""
< Date: Fri, 31 Aug 2018 14:35:22 GMT
< Connection: keep-alive
<
� �? � * Connection #0 to host localhost left intact
from hexo-tag-dplayer.
Related Issues (20)
- 请问下支持的格式 HOT 2
- "Cannot read property '_id' of undefined" HOT 4
- 介绍首页的预览图炸裂 HOT 1
- css/js filepath error: hexo generate with plug-in hexo-tag-dplayer HOT 2
- 求帮助 HOT 4
- 利用hexo-blog-encrypt加密,解密之后无法加载该插件 HOT 3
- cdn是不是没有续费啊
- safari下无法调节视频进度 HOT 1
- 在线视频
- 请问如何播放本地视频在markdown里,同时上传至个人博客? HOT 1
- 设置宽高后,手机端显示有问题 HOT 1
- 请问如何实现清晰度切换功能
- 能否取消弹幕显示
- 视频加载失败 HOT 3
- INFO DPlayer.min.css is not found in this version of dplayer, skip it. HOT 3
- INFO DPlayer.min.css is not found in this version of dplayer, skip it.
- 可以支持下jekyll吗?
- DPlayer.min.js:1 Uncaught RangeError: Maximum call stack size exceeded
- DPlayer is not defined HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hexo-tag-dplayer.