chimeejs / chimee-kernel-flv Goto Github PK
View Code? Open in Web Editor NEWFLV解码器,可参考demo的实现,用于原生Video或您的H5播放器。
FLV解码器,可参考demo的实现,用于原生Video或您的H5播放器。
hi ,chimee-kernel 团队:
在用到该插件时,我发现一个音画不同步的问题,我的配置如下:
new kernelFlv(document.getElementById('video'), {
src: '直播流.flv',
box: 'flv',
isLive: true,
webWorker: false,
seekType: 'range',
stashSize: 1024 * 64
});
该如何解决这个问题呢,
正常预期下 autoplay: false 不应该自动播放,为true才自动播放。
参见源码:
chimee-kernel-flv/lib/index.mjs
Line 5197 in 4064e11
看起来是特意自动播放的,但这样导致用户配置无效、出现与预期不符的BUG。
需要确认是否可以移除或提供开关,比如console.log(formatter$1(tag, msg));
、console.log(this.TAG,
....
播放结束 endOfstream 之后无法seek问题
在线demo:https://codesandbox.io/s/9j880ynnrr
chimee-kernel-flv版本:1.4.10
chimee版本:0.10.0-alpha.11
浏览器环境:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.62 Safari/537.36
设备名称:HUAWEI Mate 9
型号:MHA-AL00
EMUI版本:8.0.0
Android版本:8.0.0
浏览器名称:浏览器(应该是系统自带浏览器)
浏览器版本:10.8.0.4539
UA:Agent:Mozilla/5.0 (Linux; Android 8.0.0; MHA-AL00 Build/HUAWEIMHA-AL00) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Mobile Safari/537.36
ios 10.2 以上版本无法播放问题
chimee-kernel-flv/src/io/fetch.js
Line 99 in ce5bcfc
chimee-kernel-flv/src/io/fetch.js
Line 113 in ce5bcfc
嵌套的Prosise形成了一个Promise状态链,外层Promise等待内层Promise调用resolve或者reject,因为V8原生的Promise实现存在缺陷,这样使用之后会积累一大坨Promise,无法被释放,所以就造成了内存泄漏。
将两个地方的return去掉
hi chimee-kernel团队:
🚨 You need to enable Continuous Integration on all branches of this repository. 🚨
To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.
Since we didn’t receive a CI status on the greenkeeper/initial
branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.
If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/
.
Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please delete the greenkeeper/initial
branch in this repository, and then remove and re-add this repository to the Greenkeeper App’s white list on Github. You'll find this list on your repo or organization’s settings page, under Installed GitHub Apps.
比如,当fetch判断超过一段时间间隔没有拿到新数据的时候,能够抛出一些事件,这样在播放器外部可以有依据能判断是否需要超时重试。目前只通过监听video的waiting事件以及paused状态无法判断是否为直播推流连接断了的情况(当断了的时候,waiting事件触发,但是video的paused为false…)
还以为你们研究新的一套flv 的解码。还是把B站的搬过来。
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.