MCPcopy
hub / github.com/video-dev/hls.js / stopLoad

Method stopLoad

src/controller/base-stream-controller.ts:170–187  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

168 public startLoad(startPosition: number): void {}
169
170 public stopLoad() {
171 if (this.state === State.STOPPED) {
172 return;
173 }
174 this.fragmentLoader.abort();
175 this.keyLoader.abort(this.playlistType);
176 const frag = this.fragCurrent;
177 if (frag?.loader) {
178 frag.abortRequests();
179 this.fragmentTracker.removeFragment(frag);
180 }
181 this.resetTransmuxer();
182 this.fragCurrent = null;
183 this.fragPrevious = null;
184 this.clearInterval();
185 this.clearNextTick();
186 this.state = State.STOPPED;
187 }
188
189 public get startPositionValue(): number {
190 const { nextLoadPosition, startPosition } = this;

Callers 2

onMediaDetachingMethod · 0.95
onHandlerDestroyingMethod · 0.95

Calls 6

resetTransmuxerMethod · 0.95
abortRequestsMethod · 0.80
removeFragmentMethod · 0.80
clearIntervalMethod · 0.80
clearNextTickMethod · 0.80
abortMethod · 0.65

Tested by

no test coverage detected