Skip to content

Commit

Permalink
Merge pull request #140 from girlbymirror/master
Browse files Browse the repository at this point in the history
fixed: autoplay with live stream
  • Loading branch information
girlbymirror authored Apr 22, 2022
2 parents 2adbafb + 8959575 commit b574f05
Show file tree
Hide file tree
Showing 17 changed files with 20 additions and 16 deletions.

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-v20220417');
require('./h265webjs-v20220422');
export default class h265webjs {
static createPlayer(videoURL, config) {
return window.new265webjs(videoURL, config);
Expand Down
6 changes: 3 additions & 3 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-v20220417');
require('./h265webjs-v20220422');
export default class h265webjs {
static createPlayer(videoURL, config) {
return window.new265webjs(videoURL, config);
Expand Down
2 changes: 1 addition & 1 deletion example/index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCType html>
<!--
/*********************************************************
* LICENSE: GPL-3.0 https://www.gnu.org/licenses/gpl-3.0.txt
* LICENSE: CYL_Free-1.0 https://github.com/numberwolf/h265web.js/blob/master/LICENSE-Free_CN.MD
*
* Author: Numberwolf - ChangYanlong
* QQ: 531365872
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-v20220417');
require('./h265webjs-v20220422');
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-v20220421.js"></script> <!-- IMPORTANT -->
<!--<script src="dist/missile-256mb-v20211104.js"></script>--> <!-- wasm for 265mb memory(with grow) -->
<script src="dist/h265webjs-v20220417.js"></script> <!-- IMPORTANT -->
<script src="dist/h265webjs-v20220422.js"></script> <!-- IMPORTANT -->
<script src="example.js"></script> <!-- IMPORTANT -->
<style>
</style>
Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example_vue/public/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-v20220417');
require('./h265webjs-v20220422');
export default class h265webjs {
static createPlayer(videoURL, config) {
return window.new265webjs(videoURL, config);
Expand Down
2 changes: 1 addition & 1 deletion index-debug.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<meta charset="utf-8" name="github" content="https://github.com/numberwolf/h265web.js">
<script src="dist/missile-v20220421.js"></script> <!-- IMPORTANT -->
<!--<script src="dist/missile-120func-v20220117.js"></script>--> <!-- IMPORTANT -->
<script src="dist/h265webjs-v20220417.js"></script> <!-- IMPORTANT -->
<script src="dist/h265webjs-v20220422.js"></script> <!-- IMPORTANT -->
<style>
</style>
</head>
Expand Down
2 changes: 2 additions & 0 deletions src/src/decoder/c-httplive-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ class CHttpLiveCoreModule { // export default
_this.pause();
_this.play();
}

window.onclick = document.body.onclick = null;
};
}

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-v20220417');
require('./h265webjs-v20220422');
export default class h265webjs {
static createPlayer(videoURL, config) {
return window.new265webjs(videoURL, config);
Expand Down
1 change: 1 addition & 0 deletions src/src/native/nv-flvjs-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ class NvFlvjsCoreModule {
window.onclick = document.body.onclick = function(e) {
_this.videoTag.muted = false;
console.log("video isPlay", _this.isPlayingState());
window.onclick = document.body.onclick = null;
};
}

Expand Down
1 change: 1 addition & 0 deletions src/src/native/nv-videojs-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ class NvVideojsCoreModule {
window.onclick = document.body.onclick = function(e) {
_this.videoTag.muted = false;
console.log("video isPlay", _this.isPlayingState());
window.onclick = document.body.onclick = null;
};
}

Expand Down
2 changes: 1 addition & 1 deletion src/version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
# * Github: https://github.com/numberwolf/h265web.js
# *
# **********************************************************/
VERSION='v20220417' # output version + index.js
VERSION='v20220422' # output version + index.js

0 comments on commit b574f05

Please sign in to comment.