-
Notifications
You must be signed in to change notification settings - Fork 83
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
Showing
4 changed files
with
42 additions
and
8 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,22 @@ | ||
## hls.js 和 flv.js ,我该选哪个? | ||
|
||
一般情况下,使用默认的`hls.js`核心会有更流畅的播放体验 | ||
|
||
### hls.js | ||
使用 hls.js 时可以在 右键菜单-播放统计 中确认正在播放和即将切换的清晰度 | ||
- 优点: | ||
- 可以自动调节清晰度,在网络不稳定(尤其是缺B乐cdn不稳定的时候)可以保证基本的正常播放 | ||
- 整体项目代码较为成熟,不易出现bug | ||
- 缺点: | ||
- 自动切换生效可能会很慢,导致观感下降 | ||
- 有时自动切换算法比较迷 | ||
- 因为目前固定720p开始播放,在低网速时可能初始缓冲时间很长 | ||
|
||
### flv.js | ||
- 优点: | ||
- 可以记忆最后播放清晰度 | ||
- 流式播放起步较快 | ||
- 缺点: | ||
- 网络波动时频繁缓冲,需要手动切换 | ||
- 代码成熟度不足,容易出现异常错误 | ||
- 跳跃至未缓冲部分时会清空已缓冲内容,需要重新获取 |
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
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
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