Skip to content

Commit

Permalink
2022新计划
Browse files Browse the repository at this point in the history
  • Loading branch information
numberwolf committed Dec 31, 2021
1 parent 6bea883 commit 90d7567
Show file tree
Hide file tree
Showing 14 changed files with 315 additions and 153 deletions.
2 changes: 2 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -915,6 +915,8 @@ ffmpeg -ss 20 -t 10 -i ./res/xinxiaomen.mp4 \

| 更新日志 | 内容 |
| ---- | ---- |
| 时间 | 2021/12/31 |
| - | 0.增加 H.264 HTTP-FLV 失败后Retry |
| 时间 | 2021/12/24 |
| - | 0.修复 H.264 HTTP-FLV 部分流无回调问题 |
| 时间 | 2021/12/19 |
Expand Down
2 changes: 2 additions & 0 deletions README_EN.MD
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,8 @@ ffmpeg -ss 20 -t 10 -i ./res/xinxiaomen.mp4 \

| Update | Content |
| ---- | ---- |
| Time | 2021/12/31 |
| - | 0.Add H.264 HTTP-FLV Retry after error |
| Time | 2021/12/24 |
| - | 0.Fixed H.264 HTTP-FLV Some Badcase with callback |
| Time | 2021/12/19 |
Expand Down
18 changes: 9 additions & 9 deletions dist/h265webjs-v20211224.js → dist/h265webjs-v20211231.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* Github: https://github.com/numberwolf/h265web.js
*
**********************************************************/
require('./h265webjs-v20211224');
require('./h265webjs-v20211231');
export default class h265webjs {
static createPlayer(videoURL, config) {
return window.new265webjs(videoURL, config);
Expand Down
18 changes: 9 additions & 9 deletions example/dist/dist-play.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* Github: https://github.com/numberwolf/h265web.js
*
**********************************************************/
require('./h265webjs-v20211224');
require('./h265webjs-v20211231');
export default class h265webjs {
static createPlayer(videoURL, config) {
return window.new265webjs(videoURL, config);
Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example_normal/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* Github: https://github.com/numberwolf/h265web.js
*
**********************************************************/
require('./h265webjs-v20211224');
require('./h265webjs-v20211231');
export default class h265webjs {
static createPlayer(videoURL, config) {
return window.new265webjs(videoURL, config);
Expand Down
2 changes: 1 addition & 1 deletion example_normal/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<link rel="stylesheet" type="text/css" href='player-view/css/progress.css'>
<script src="dist/missile.js"></script> <!-- IMPORTANT -->
<!--<script src="dist/missile-256mb-v20211104.js"></script>--> <!-- wasm for 265mb memory(with grow) -->
<script src="dist/h265webjs-v20211224.js"></script> <!-- IMPORTANT -->
<script src="dist/h265webjs-v20211231.js"></script> <!-- IMPORTANT -->
<script src="example.js"></script> <!-- IMPORTANT -->
<style>
</style>
Expand Down
9 changes: 5 additions & 4 deletions src/src/h265webjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -1529,7 +1529,7 @@ class H265webjsModule {
};
_this.playParam.audioNone = _this.player.mediaInfo.audioNone;

console.log("_this.player.mediaInfo", _this.player.mediaInfo);
console.log("_cLiveFLVDecoderEntry _this.player.mediaInfo", _this.player.mediaInfo);

if (_this.player.vCodecID === def.V_CODEC_NAME_HEVC) {
if (_this.playParam.audioIdx < 0) {
Expand All @@ -1544,7 +1544,7 @@ class H265webjsModule {
let releaseRet = _this.player.release();
console.log("releaseRet ===> ", releaseRet);
_this.player = null;
_this._flvJsPlayer();
_this._flvJsPlayer(_this.playParam.durationMs);
}
// _this.onLoadFinish && _this.onLoadFinish();
}; // onProbeFinish
Expand Down Expand Up @@ -1625,7 +1625,7 @@ class H265webjsModule {
let releaseRet = _this.player.release();
console.log("releaseRet ===> ", releaseRet);
_this.player = null;
_this._flvJsPlayer();
_this._flvJsPlayer(_this.playParam.durationMs);
}
// _this.onLoadFinish && _this.onLoadFinish();
}; // onProbeFinish
Expand Down Expand Up @@ -1952,14 +1952,15 @@ class H265webjsModule {

} // _videoJsPlayer

_flvJsPlayer() {
_flvJsPlayer(durParams=-1) {
console.log("_flvJsPlayer");
let _this = this;
let playerConfig = {
width: this.configFormat.playerW,
height: this.configFormat.playerH,
playerId: this.configFormat.playerId,
ignoreAudio : this.configFormat.extInfo.ignoreAudio,
duration: durParams
}; // playerConfig
this.player = new NvFlvJSCore.NvFlvjsCore(playerConfig);
this.player.onLoadFinish = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* Github: https://github.com/numberwolf/h265web.js
*
**********************************************************/
require('./h265webjs-v20211224');
require('./h265webjs-v20211231');
export default class h265webjs {
static createPlayer(videoURL, config) {
return window.new265webjs(videoURL, config);
Expand Down
Loading

0 comments on commit 90d7567

Please sign in to comment.