Skip to content

Commit 2de48f8

Browse files
committed
adding reset
1 parent c756b81 commit 2de48f8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/dash-adapter.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,9 @@ export default class DashAdapter extends BaseMediaSourceAdapter {
797797
case shaka.net.NetworkingEngine.RequestType.MANIFEST:
798798
this._parseManifest(response.data);
799799
this._playbackActualUri = response.uri;
800-
this._liveEntryStValue = response.uri?.match(/\/st\/([01])\//)?.[1] ?? '';
800+
if (!this._liveEntryStValue) {
801+
this._liveEntryStValue = response.uri?.match(/\/st\/([01])\//)?.[1] ?? '';
802+
}
801803
this._trigger(EventType.MANIFEST_LOADED, {miliSeconds: response.timeMs});
802804
setTimeout(() => {
803805
this._isLive = this._isLive || this._shaka?.isLive() as boolean;
@@ -964,6 +966,7 @@ export default class DashAdapter extends BaseMediaSourceAdapter {
964966
this._responseFilterError = false;
965967
this._manifestParser = null;
966968
this._thumbnailController = null;
969+
this._liveEntryStValue = '';
967970
this._errorCounter = {};
968971
this._clearStallInterval();
969972
this._clearVideoUpdateTimer();

0 commit comments

Comments
 (0)