whiteblue / bilibili-html5 Goto Github PK
View Code? Open in Web Editor NEWAn unofficial website of BiliBili build with React.js
Home Page: http://whiteblue.github.io/bilibili-html5
An unofficial website of BiliBili build with React.js
Home Page: http://whiteblue.github.io/bilibili-html5
另开一贴:
推荐加入加速减速功能。因为浏览器里的原生H5播放器已经支持这个功能。唯一不支持的是弹幕引擎,据我测试,CSS3 的弹幕会随着加速而缩短留存时间,可是缩短得太多了,左侧会出现留白。Canvas 的弹幕没法调整速率,所以一顿一顿的。
另外加速了之后,可能会出现音画不同步的问题,声音快于画面。是因为缺少校验么?还是搜索定位算法的问题?
我测试的加速方法是用 Video Speed Control 插件实现的(用js去找video element实在蛋疼)。
ref: #8
隔壁@DIYgod有个dplayer的弹幕播放器,希望项目开发者可以看看
(我是通过某人的star看见的(
0 info it worked if it ends with ok
1 verbose cli [ 'D:\DevTools\nodejs\node.exe',
1 verbose cli 'D:\DevTools\nodejs\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'build' ]
2 info using [email protected]
3 info using [email protected]
4 verbose stack Error: missing script: build
4 verbose stack at run (D:\DevTools\nodejs\node_modules\npm\lib\run-script.js:151:19)
4 verbose stack at D:\DevTools\nodejs\node_modules\npm\lib\run-script.js:61:5
4 verbose stack at D:\DevTools\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:356:5
4 verbose stack at checkBinReferences_ (D:\DevTools\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:320:45)
4 verbose stack at final (D:\DevTools\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:354:3)
4 verbose stack at then (D:\DevTools\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:124:5)
4 verbose stack at D:\DevTools\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:311:12
4 verbose stack at D:\DevTools\nodejs\node_modules\npm\node_modules\graceful-fs\graceful-fs.js:78:16
4 verbose stack at tryToString (fs.js:456:3)
4 verbose stack at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:443:12)
5 verbose cwd D:\DevTools\phpStudy\WWW\bilibili-html5
6 error Windows_NT 10.0.15063
7 error argv "D:\DevTools\nodejs\node.exe" "D:\DevTools\nodejs\node_modules\npm\bin\npm-cli.js" "run" "build"
8 error node v6.10.2
9 error npm v3.10.10
10 error missing script: build
11 error If you need help, you may report this error at:
11 error https://github.com/npm/npm/issues
12 verbose exit [ 1, true ]
一个视频调整好音量后,再开另外一个又是默认最大了~~~~(>_<)~~~~
最终出来的css有
//---- index banner ----
注释,导致后面的css失效,样式错误
视频放久了会变质……额不是,是403 Error,解决方案是,切换高清再切回超清,但是这样浪费一次请求,浪费带宽,浪费时间……不能直接catch这个error然后自动重连么?
ref: #8
It would be nice to have some hotkey support. Such as space for toggle pause/play and right/left arrow for forward/back.
This seem to be a drop-in solution: https://github.com/ctd1500/videojs-hotkeys
cnpm:
× Install fail! Error: [w@^2.0.13] GET https://registry.npm.taobao.org/w/%3E%3D2.0.13%20%3C3.0.0 response 404 status
Error: [w@^2.0.13] GET https://registry.npm.taobao.org/w/%3E%3D2.0.13%20%3C3.0.0 response 404 status
npm:
npm ERR! Windows_NT 10.0.15063
npm ERR! argv "D:\DevTools\nodejs\node.exe" "D:\DevTools\nodejs\node_modules\npm\bin\npm-cli.js" "install"
npm ERR! node v6.10.2
npm ERR! npm v3.10.10
npm ERR! code ETARGET
npm ERR! notarget No compatible version found: w@^2.0.13
npm ERR! notarget Valid install targets:
npm ERR! notarget 0.0.1
npm ERR! notarget
npm ERR! notarget This is most likely not a problem with npm itself.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.