Skip to content

Commit

Permalink
开个会半天扯皮
Browse files Browse the repository at this point in the history
  • Loading branch information
numberwolf committed Jul 12, 2022
1 parent feef3a4 commit 6971df6
Show file tree
Hide file tree
Showing 16 changed files with 190 additions and 186 deletions.
2 changes: 2 additions & 0 deletions README_EN.MD
Original file line number Diff line number Diff line change
Expand Up @@ -955,6 +955,8 @@ ffmpeg -ss 20 -t 10 -i ./res/xinxiaomen.mp4 \

| Update | Content |
| ---- | ---- |
| Time | 2022/07/12 |
| - | 0.Fixed some problem |
| Time | 2022/07/06-10 |
| - | 0.Support g711u (http-flv) |
| - | 1.Fixed: HTTP-FLV(AVC) without Audio |
Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist-multi-thread/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-v20220706');
require('./h265webjs-v20220712');
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 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-v20220706');
require('./h265webjs-v20220712');
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-multi-thread/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-v20220706');
require('./h265webjs-v20220712');
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-v20220706');
require('./h265webjs-v20220712');
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 @@ -37,7 +37,7 @@
<link rel="stylesheet" type="text/css" href='player-view/css/button.css'>
<link rel="stylesheet" type="text/css" href='player-view/css/progress.css'>
<script src="dist/missile.js"></script>
<script src="dist/h265webjs-v20220706.js"></script>
<script src="dist/h265webjs-v20220712.js"></script>
<script src="index.js"></script>

</head>
Expand Down
168 changes: 0 additions & 168 deletions example_vue/public/dist/h265webjs-v20220706.js

This file was deleted.

168 changes: 168 additions & 0 deletions example_vue/public/dist/h265webjs-v20220712.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions index-debug.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
<meta charset="utf-8" name="github" content="https://github.com/numberwolf/h265web.js">

<script src="dist/missile.js"></script> <!-- IMPORTANT -->
<script src="dist/h265webjs-v20220706.js"></script> <!-- IMPORTANT -->
<script src="dist/h265webjs-v20220712.js"></script> <!-- IMPORTANT -->

<!--<script src="dist-multi-thread/missile-multi-thread.js"></script>
<script src="dist-multi-thread/h265webjs-v20220706.js"></script>-->
<script src="dist-multi-thread/h265webjs-v20220712.js"></script>-->

<style>
</style>
Expand Down
12 changes: 7 additions & 5 deletions src/src/decoder/c-httplive-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ const V_CACHE_INTERVAL_PUSH_LOOP_MS = 1;
// }

class CHttpLiveCoreModule { // export default
constructor(config) {
constructor(config) {
let _this = this;
this.config = {
width: config.width || def.DEFAULT_WIDTH,
this.config = {
width: config.width || def.DEFAULT_WIDTH,
height: config.height || def.DEFAULT_HEIGHT,
fps: config.fps || def.DEFAULT_FPS,
sampleRate: config.sampleRate || def.DEFAULT_SAMPLERATE,
Expand Down Expand Up @@ -761,7 +761,7 @@ class CHttpLiveCoreModule { // export default
}

setVoice(voice) {
if (this.ignoreAudio < 1) {
if (this.config.ignoreAudio < 1) {
this.audioVoice = voice;
this.audioWAudio && this.audioWAudio.setVoice(voice);
}
Expand Down Expand Up @@ -835,7 +835,9 @@ class CHttpLiveCoreModule { // export default
}

pause() {
if (this.ignoreAudio < 1) {
console.log("audio pause prepare:", this.config.ignoreAudio, this.audioWAudio);
if (this.config.ignoreAudio < 1) {
console.log("audio pause start");
this.audioWAudio && this.audioWAudio.pause();
}
this.playInterval && clearInterval(this.playInterval);
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-v20220706');
require('./h265webjs-v20220712');
export default class h265webjs {
static createPlayer(videoURL, config) {
return window.new265webjs(videoURL, config);
Expand Down
2 changes: 1 addition & 1 deletion src/version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
# * Github: https://github.com/numberwolf/h265web.js
# *
# **********************************************************/
VERSION='v20220706' # output version + index.js
VERSION='v20220712' # output version + index.js
WASM_VERSION='v20220706'

0 comments on commit 6971df6

Please sign in to comment.