Skip to content

Commit

Permalink
do not pay attention to text buffer to trigger STREAM_BUFFERING_COMPL…
Browse files Browse the repository at this point in the history
…ETED event.
  • Loading branch information
nicosang committed Nov 13, 2017
1 parent dd39758 commit b28b842
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/streaming/Stream.js
Expand Up @@ -493,7 +493,9 @@ function Stream(config) {

// if there is at least one buffer controller that has not completed buffering yet do nothing
for (let i = 0; i < ln; i++) {
if (!processors[i].isBufferingCompleted()) {
//if audio or video buffer is not buffering completed state, do not send STREAM_BUFFERING_COMPLETED
if (!processors[i].isBufferingCompleted() && (processors[i].getType() === Constants.AUDIO || processors[i].getType() === Constants.VIDEO)) {
log('[Stream] onBufferingCompleted - can\'t trigger STREAM_BUFFERING_COMPLETED because streamProcessor ' + processors[i].getType() + ' is not buffering completed');
return;
}
}
Expand Down

0 comments on commit b28b842

Please sign in to comment.