Comments (26)
@shunzizhan
我邮件发了一份我的demo给你了,PC和IOS上测试是没问题的,安卓因为没有安卓机暂时还没测试过_(:з)∠)_
from flv.js.
@cyfour 我没找到你邮箱_(:з)∠)_
完整的Demo我直接丢在我服务器上了,需要的可以去自取。
http://www.riricho.com/flvJs.zip
放在web service环境下等页面加载完 点击下面的load才会加载视频资源
Start和Pause是播放和暂停,seekTo有bug不要点_(:з)∠)_
from flv.js.
我是直接在浏览器里打开了index.html文件
from flv.js.
Not allowed to load local resource似乎是因为chrome的安全限制禁止这样加载本地资源。
我在edge里打开就不报这个错了,但遇到了新问题:
[IOController] > Loader error, code = -1, msg = ProgressEvent error
[TransmuxingController] > IOException: type = Exception, code = -1, msg = ProgressEvent error
检查过flv地址 但并没有发现错误(╯‵□′)╯︵┻━┻
from flv.js.
刚刚开了apache试了试,chrome和edge都可以顺利播放了。
你可以尝试在web service里用127.0.0.1运行下页面试试╰(°▽°)╯
from flv.js.
用Apache 也是报错[MSEController] > MediaSource onSourceOpen
2flv.min.js:3 GET http://example.com/flv/video.flv value @ flv.min.js:3value @ flv.min.js:3value @ flv.min.js:2value @ flv.min.js:2value @ flv.min.js:1value @ flv.min.js:4(anonymous function) @ flv.min.js:4i.emit @ flv.min.js:1value @ flv.min.js:1
(index):1 Fetch API cannot load http://example.com/flv/video.flv. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1:8080' is therefore not allowed access. The response had HTTP status code 500. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
flv.min.js:5 [IOController] > Loader error, code = -1, msg = Failed to fetchvalue @ flv.min.js:5value @ flv.min.js:3(anonymous function) @ flv.min.js:3
flv.min.js:5 [TransmuxingController] > IOException: type = Exception, code = -1, msg = Failed to fetchvalue @ flv.min.js:5value @ flv.min.js:2value @ flv.min.js:3(anonymous function) @ flv.min.js:3
flv.min.js:1 Uncaught (in promise) Error: Uncaught, unspecified "error" event. (NetworkError)(…)
from flv.js.
@cyfour
你需要把url: 'http://example.com/flv/video.flv' 这里的地址换成一个有效的flv地址
我是直接去bilibili下了一段flv放在本地里加载的
所以我这里的代码是url: 'flv/video.flv'
我的目录结构是:
--js
--css
--flv
----index.html
完整的代码是:
`
from flv.js.
改了本地的 Uncaught (in promise) Error: Uncaught, unspecified "error" event. (MediaError)(…)
flv.min.js:1 Uncaught (in promise) Error: Uncaught, unspecified "error" event. (MediaError)(…) 一直报这个错。。。
from flv.js.
换了另外的FLV 又出现不同的报错 [FLVDemuxer] > Parsed onMetaData
2flv.min.js:5 [TransmuxingController] > DemuxException: type = CodecUnsupported, info = Flv: Unsupported audio codec idx: 2value @ flv.min.js:5value @ flv.min.js:2value @ flv.min.js:2value @ flv.min.js:2value @ flv.min.js:2value @ flv.min.js:3value @ flv.min.js:3(anonymous function) @ flv.min.js:3
flv.min.js:5 [TransmuxingController] > DemuxException: type = CodecUnsupported, info = Flv: Unsupported codec in video frame: 4value @ flv.min.js:5value @ flv.min.js:2value @ flv.min.js:2value @ flv.min.js:2value @ flv.min.js:2value @ flv.min.js:3value @ flv.min.js:3(anonymous function) @ flv.min.js:3
flv.min.js:5 [TransmuxingController] > DemuxException: type = CodecUnsupported, info = Flv: Unsupported audio codec idx: 2value @ flv.min.js:5value @ flv.min.js:2value @ flv.min.js:2value @ flv.min.js:2value @ flv.min.js:2value @ flv.min.js:3value @ flv.min.js:3(anonymous function) @ flv.min.js:3
flv.min.js:5 [TransmuxingController] > DemuxException: type = CodecUnsupported, info = Flv: Unsupported codec in video frame: 4value @ flv.min.js:5value @ flv.min.js:2value @ flv.min.js:2value @ flv.min.js:2value @ flv.min.js:2value @ flv.min.js:3value @ flv.min.js:3(anonymous function) @ flv.min.js:3
7flv.min.js:5 [TransmuxingController] > DemuxException: type = CodecUnsupported, info = Flv: Unsupported audio codec idx: 2value @ flv.min.js:5value @ flv.min.js:2value @ flv.min.js:2value @ flv.min.js:2value @ flv.min.js:2value @ flv.min.js:3value @ flv.min.js:3(anonymous function) @ flv.min.js:3
flv.min.js:5 [TransmuxingController] > DemuxException: type = CodecUnsupported, info = Flv: Unsupported codec in video frame: 4
from flv.js.
哪里有flv.min.js?
from flv.js.
我现在也是各种报错,本地跑,也是提示错误
使用线上的flv文件,则提示跨域,让运维配nginx转跳,还是报错
哪位用完好的demo,能不能发我一份?
from flv.js.
仅支持H264+AAC
from flv.js.
1.我不是很明白你的意思 @xqq 仅支持H264+AAC
2.我目前需要在移动端播放视频,需要同时兼容Android和ios版本,flv.js能不能够支持?
from flv.js.
- 从错误logcat看,输入文件是不受支持的H263+MP3编码。
- Android 支持,ios 不支持
from flv.js.
求一个 H264+AAC 的FLV 我这边只能用格式工厂转化成H264+AAC 的MP4。
from flv.js.
@cyfour
你可以直接去B站上抓一段flv下来测试 B站的视频都是一段一段的flv拼起来的
from flv.js.
flv.min.js:5 [TransmuxingController] > DemuxException: type = CodecUnsupported, info = Flv: Unsupported codec in video frame: 2谷歌提示这个 360浏览器可以播放
from flv.js.
@Riricho 也发一份给我哈~谢谢。
from flv.js.
sigh
from flv.js.
@Riricho 请问ios您是选择的测试版本是什么,我这里用ipad air测试失败,无法播放
from flv.js.
不支持ios
from flv.js.
@tenglongwentian 5s/ios10/safari.
from flv.js.
2017年3月8日测试,chrome内核浏览器,奇数版本号不支持,偶数版本号支持,Android端;网上搜索称:奇数版本号是beta版,偶数版本号是stable版 @Riricho ,目前正在寻求IOS能够播放之道
from flv.js.
@Riricho 能不能也发我一份
from flv.js.
@shunzizhan 我邮件发了一份我的demo给你了,PC和IOS上测试是没问题的,安卓因为没有安卓机暂时还没测试过_(:з)∠)大佬能发给我一份吗 最近在做flv的项目 本地一直报错
from flv.js.
我现在也是报各种错误,本地跑,也是提示错误 使用线上的flv文件,则提示跨域,让运维配nginx转跳,还是报错
哪位用发我的demo,能不能?
请问大佬,你这个问题解决了吗
from flv.js.
Related Issues (20)
- 建议参考https://flvplayer.js.org/ 添加canvas播放支持以兼容ios, 不兼容ios是最大的问题.
- 我做的轮播直播还可以把哈哈哈 HOT 1
- flvjs 如何 将websocket 返回的数据渲染出来 ? player.appendBuffer(data); 实例上没有appendBuffer 方法了?
- webgpu是否支持
- Cannot read properties of undefined (reading 'call')
- flvjs播放直播流,显示时间戳未负数
- chrome更新到 115 版本后,http-flv播放疯狂报错,回退114就正常了 HOT 1
- 循环点播问题 loop HOT 1
- flv调用了start但是没有get请求发送,导致视频不能播放 HOT 1
- 使用flv获取摄像头的直播流的时候,内部有时候不调用fetch方法,有时候调用了后会触发_internalAbort的内部中止请求 HOT 1
- react项目中使用FLV播放实时直播流,一直没有触发sourceOpen方法,导致没有调用fetch方法 HOT 1
- flv播放,有时候不能展示视频,有时候能展示。然后我把video标签写死后就每次都能了 HOT 1
- React 中使用 load()方法报错unhandled error .
- Auto Unhide Controls HOT 1
- Watermark/Logo
- flv.js配置https后播放实时码流,打开需要一分钟 HOT 1
- 20231102号音画不同步问题
- firefox不能正常播放 HOT 1
- flv.js播放页面卡住且无法恢复
- Non-FLV, Unsupported media type! 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 flv.js.