Skip to content

Commit

Permalink
Merge pull request #189 from girlbymirror/master
Browse files Browse the repository at this point in the history
fixed:play hls(Avc) stream error without autoplay
  • Loading branch information
girlbymirror authored Sep 16, 2022
2 parents 17102ae + 2a43a44 commit 8d47475
Show file tree
Hide file tree
Showing 19 changed files with 25 additions and 17 deletions.
2 changes: 2 additions & 0 deletions README_EN.MD
Original file line number Diff line number Diff line change
Expand Up @@ -998,6 +998,8 @@ ffmpeg -ss 20 -t 10 -i ./res/xinxiaomen.mp4 \

| Update | Content |
| ---- | ---- |
| Time | 2022/09/13 |
| - | 0.Fixed: AVC stream loop buffer error without autoplay |
| Time | 2022/09/12 |
| - | 0.Fixed: hevc url cannot play without text of "http" |
| Time | 2022/08/24 |
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-v20220912');
require('./h265webjs-v20220916');
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-v20220912');
require('./h265webjs-v20220916');
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-v20220912');
require('./h265webjs-v20220916');
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-v20220912');
require('./h265webjs-v20220916');
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-v20220912.js"></script>
<script src="dist/h265webjs-v20220916.js"></script>
<script src="index.js"></script>

</head>
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-v20220828');
require('./h265webjs-v20220916');
export default class h265webjs {
static createPlayer(videoURL, config) {
return window.new265webjs(videoURL, config);
Expand Down
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-v20220912.js"></script> <!-- IMPORTANT -->
<script src="dist/h265webjs-v20220916.js"></script> <!-- IMPORTANT -->

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

<style>
</style>
Expand Down
1 change: 1 addition & 0 deletions src/src/h265webjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2558,6 +2558,7 @@ class H265webjsModule {
playerId: this.configFormat.playerId,
ignoreAudio : this.configFormat.extInfo.ignoreAudio,
autoPlay: this.configFormat.extInfo.autoPlay,
playMode: this.playMode,
}; // playerConfig
this.player = new NvVideoJSCore.NvVideojsCore(playerConfig);
this.player.onMakeItReady = () => {
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-v20220912');
require('./h265webjs-v20220916');
export default class h265webjs {
static createPlayer(videoURL, config) {
return window.new265webjs(videoURL, config);
Expand Down
5 changes: 5 additions & 0 deletions src/src/native/nv-videojs-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,11 @@ class NvVideojsCoreModule {
_this.bufferInterval = null;
}

alert("probeDurationMS:" + _this.configFormat.probeDurationMS);
if (_this.configFormat.probeDurationMS <= 0 || _this.duration <= 0) {
return;
}

_this.bufferInterval = window.setInterval(function() {
const bufProgress = _this.videoTag.buffered.end(0);
console.log("bufProgress", bufProgress);
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='v20220912' # output version + index.js
VERSION='v20220916' # output version + index.js
WASM_VERSION='v20220706'

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion vite_vue_ts/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-v20220828');
require('./h265webjs-v20220916');
export default class h265webjs {
static createPlayer(videoURL, config) {
return window.new265webjs(videoURL, config);
Expand Down

0 comments on commit 8d47475

Please sign in to comment.