goblin-laboratory / reactjs-player Goto Github PK
View Code? Open in Web Editor NEW基于 react hooks 的 video 播放组件,结构简单,代码简洁,扩展方便。
Home Page: https://goblin-laboratory.github.io/reactjs-player/
基于 react hooks 的 video 播放组件,结构简单,代码简洁,扩展方便。
Home Page: https://goblin-laboratory.github.io/reactjs-player/
flv地址是随便搜的,vlc可以播放
看网上的说法 useReducer 相比 useState 会做合并更新,能够提示性能
父级容器记得加relative
<div style={{
height: '100%',
position: 'relative'
}} >
<ReactPlayer src={foo} />
</div>
demo就是如此, 点击后
我在实际使用中,会遇到
Can't resolve 'fbemitter' ./node_modules 等错误,我查看了 package.json,发现了依赖都定义在了 devDependencies 节点内,我感觉应该是放错位置了,你本地开发理论上是没问题的,但是如果直接 npm/yarn 添加依赖就报错了
Lines 35 to 73 in 15e53f2
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.