-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathold-code.ts
More file actions
23 lines (20 loc) · 800 Bytes
/
Copy pathold-code.ts
File metadata and controls
23 lines (20 loc) · 800 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
this.route.queryParams.subscribe((route: { playlistId: string; clipId: string }) => {
this.clip$ = this.store.pipe(
select($playlistsClip(route.playlistId, currentRoute.clipId))
);
this.clip$.subscribe((currentClip: Clip | null) => {
if (currentClip != null) {
this.recording$ = this.store.pipe(select($recording(currentClip.recordingId)));
this.recording$.subscribe((currentRecording: Recording | null) => {
if (currentRecording != null) {
this.store.dispatch(new ChangeCurrentVideo(currentRecording.videos[0]));
if (currentRecording.videos) {
this.store.pipe(select($currentVideo)).subscribe((currentVideo: Video) => {
// Some work with current video
});
}
}
});
}
});
});