Skip to content

Commit

Permalink
Add retry for http-flv live stream
Browse files Browse the repository at this point in the history
  • Loading branch information
numberwolf committed Nov 16, 2021
1 parent 3a0a58e commit 53f8357
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/h265webjs-v20211116.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example/dist/dist-play.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example/dist/h265webjs-v20211116.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example_normal/dist/h265webjs-v20211116.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions src/src/h265webjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,9 @@ class H265webjsModule {

_seekHLS(clickedValue, _self, callback) {
// alert("seekHLS" + clickedValue);
if (this.player === undefined || this.player === null) {
return false;
}
setTimeout(function() {
console.warn("this.player.getCachePTS()", _self.player.getCachePTS());
if (_self.player.getCachePTS() > clickedValue) {
Expand Down Expand Up @@ -759,6 +762,10 @@ class H265webjsModule {
let _this = this;
console.warn("SEEK feedMP4Data:", secVideoIdx, secAudioIdx);

if (this.player === undefined || this.player === null) {
return false;
}

let durationSec = parseInt(this.playParam.durationMs / 1000);

// let alreadyPushThisSec = false;
Expand Down

0 comments on commit 53f8357

Please sign in to comment.