-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
邵强强
committed
Dec 27, 2023
0 parents
commit d50f390
Showing
101 changed files
with
47,983 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
## v1.0.0 | ||
|
||
[feat] 支持 flv h264/h265 编码的流播放 | ||
|
||
[feat] 支持 音频ACC 播放 | ||
|
||
[feat] 支持 2k 分辨率 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
## Ezuikit-flv | ||
|
||
 | ||
 | ||
|
||
ezuikit-flv 是一款开源的纯H5直播流播放器,通过Emscripten将音视频解码库编译成js(wasm) 运行于浏览器之中。兼容几乎所有浏览器,可以运行在PC、手机、微信中,无需额外安装插件。 | ||
|
||
## 功能 | ||
|
||
- 支持解码H.264视频 | ||
- 支持解码H.265视频(flv id == 12) | ||
- 支持2K视频 | ||
- 支持解码AAC音频 | ||
- 可设置播放缓冲区时长,可设置0缓冲极限低延迟(网络抖动会造成卡顿现象) | ||
- 可创建多个播放实例 | ||
- 手机浏览器内打开长时间不会息屏 | ||
- 支持填充,等比,等比缩放 3种视频缩放模式 | ||
- 支持0,90,180,270度画面旋转 | ||
- 支持MediaSourceExtensions 硬件解码 | ||
- 支持MediaSourceExtensions硬解码失败的情况下自动切换到wasm软解码 | ||
|
||
### npm 使用 | ||
|
||
```bash | ||
npm install ezuikit-flv | ||
``` | ||
|
||
```js | ||
import EzuikitFlv from 'ezuikit-flv' | ||
|
||
const player = new EzuikitFlv({ | ||
url: "play url", // https://play.com/9999.flv | ||
container: "container-id", // support element id or element | ||
decoder: "decoder.js", // 自定义解码库加载地址, 默认放置在服务器根目录下 | ||
}) | ||
|
||
player.play() | ||
``` | ||
|
||
### umd使用 | ||
|
||
```html | ||
<div id='container-id'> | ||
|
||
<!-- ezuikit-js umd file `node_modules/ezuikit-flv/index.js`--> | ||
<script src='./index.js'></script> | ||
<script> | ||
const player = new EzuikitFlv({ | ||
url: "play url", // https://play.com/9999.flv | ||
container: "container-id", // support element id or element | ||
decoder: "decoder.js", // 自定义解码库加载地址, 默认放置在服务器根目录下 | ||
}) | ||
player.play() | ||
</script> | ||
``` | ||
|
||
注意: 暂不提供CDN地址, decoder静态资源需要放置在自己的服务器下(`node_modules/ezuikit-flv`下 `decoder.wasm` 和 `decoder.js` 文件, 这两个文件需要在同一个文件夹下) | ||
|
||
注意: 暂不提供CDN地址,decoder静态资源需要放置在自己的服务器下(`node_modules/ezuikit-flv`下 `decoder.wasm` 和 `decoder.js` 文件, 这两个文件需要在同一个文件夹下) | ||
|
||
注意: 暂不提供CDN地址,decoder静态资源需要放置在自己的服务器下(`node_modules/ezuikit-flv`下 `decoder.wasm` 和 `decoder.js` 文件, 这两个文件需要在同一个文件夹下) | ||
|
||
|
||
### 配置 | ||
|
||
[options](https://ezviz-openbiz.github.io/EZUIKit-flv/global.html#FlvOptions) | ||
|
||
### api | ||
|
||
[api](https://ezviz-openbiz.github.io/EZUIKit-flv/EzuikitFlv.html) | ||
|
||
|
||
### examples | ||
|
||
[base-app](https://github.com/Ezviz-OpenBiz/EZUIKit-flv/tree/master/examples/base-app) | ||
|
||
[react-app](https://github.com/Ezviz-OpenBiz/EZUIKit-flv/tree/master/examples/react-app) | ||
|
||
[vue-app](https://github.com/Ezviz-OpenBiz/EZUIKit-flv/tree/master/examples/vue-app) | ||
|
||
|
||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.