Skip to content

Commit 5a5956e

Browse files
authored
do not restart manifest updater once dynamic mpd goes to static (#3401)
1 parent 20a1ff1 commit 5a5956e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/streaming/ManifestUpdater.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ function ManifestUpdater() {
4545
refreshDelay,
4646
refreshTimer,
4747
isPaused,
48+
isStopped,
4849
isUpdating,
4950
manifestLoader,
5051
manifestModel,
@@ -93,6 +94,7 @@ function ManifestUpdater() {
9394
refreshDelay = NaN;
9495
isUpdating = false;
9596
isPaused = true;
97+
isStopped = false;
9698
stopManifestRefreshTimer();
9799
}
98100

@@ -116,6 +118,10 @@ function ManifestUpdater() {
116118
function startManifestRefreshTimer(delay) {
117119
stopManifestRefreshTimer();
118120

121+
if (isStopped) {
122+
return;
123+
}
124+
119125
if (isNaN(delay) && !isNaN(refreshDelay)) {
120126
delay = refreshDelay * 1000;
121127
}
@@ -143,6 +149,8 @@ function ManifestUpdater() {
143149
// Stop manifest update, ignore static manifest and signal end of dynamic stream to detect end of stream
144150
if (manifestModel.getValue() && manifestModel.getValue().type === DashConstants.DYNAMIC && manifest.type === DashConstants.STATIC) {
145151
eventBus.trigger(Events.DYNAMIC_STREAM_COMPLETED);
152+
isUpdating = false;
153+
isStopped = true;
146154
return;
147155
}
148156

0 commit comments

Comments
 (0)