Comments (7)
好像是视频问题,
from reactjs-player.
我的 demo 里面 flv.js 都是给的直播参数,没有测试过 flv.js 播回放的情况,如果有测试地址我这边可以把 demo 增加一个播录像的选项,同理 hls.js 都是用来播回放的
from reactjs-player.
这个 url 是 http 的,demo 地址是 https 的,所以会没办法播放 @AimLuo
from reactjs-player.
看到了,而且还有跨域问题。
from reactjs-player.
flv.js有跨域限制。😭
import React from 'react';
import ReactPlayer from 'reactjs-player';
import './App.css';
export default () => {
return <ReactPlayer kernel="flvjs" src="http://47.110.238.135:8018/mailian/07466BFE7481_1.flv" type="video/x-flv" />
}
from reactjs-player.
跨域用nginx代理应该可行,不过我们项目的流有问题,
- 有待验证
from reactjs-player.
- 可以先用 flv.js 测试下,我这边对于视频没有做过多的处理,可能参数调一下就能适配,flv 格式标准就不是那么严格
- 跨域的问题可以再后端配置一下下面两个响应头:
access-control-allow-headers: *
access-control-allow-origin: *
from reactjs-player.
Related Issues (8)
- 华为手机微信同层播放显示异常 HOT 5
- 缺少swf解析模块 HOT 3
- 父级容器记得加`relative` HOT 9
- 使用 useReducer 代替 useState 做状态管理 HOT 1
- GrindPlayer 需要支持 ReactPlayerContext HOT 1
- package.json 配置文件的问题 HOT 1
- 一点就黑屏, native方式播放mp4 HOT 3
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 reactjs-player.