2022-01-19 17:24:11 +01:00
|
|
|
import { Component, OnInit } from '@angular/core';
|
|
|
|
import { Router } from '@angular/router';
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'app-dashboard',
|
|
|
|
templateUrl: './dashboard.component.html',
|
|
|
|
styleUrls: ['./dashboard.component.scss']
|
|
|
|
})
|
|
|
|
export class DashboardComponent implements OnInit {
|
2024-07-02 19:19:05 +02:00
|
|
|
title = 'openvidu-components-angular';
|
|
|
|
private areStaticVideosEnabled = false;
|
2022-01-19 17:24:11 +01:00
|
|
|
|
|
|
|
constructor(private router: Router) {}
|
|
|
|
|
|
|
|
ngOnInit(): void {}
|
|
|
|
|
|
|
|
goTo(path: string) {
|
2024-07-02 19:19:05 +02:00
|
|
|
this.router.navigate([`/${path}`], { queryParams: { staticVideos: this.areStaticVideosEnabled } });
|
|
|
|
}
|
|
|
|
|
|
|
|
staticVideosChanged(value: boolean) {
|
|
|
|
console.warn('VC video enabled: ', value);
|
|
|
|
this.areStaticVideosEnabled = value;
|
2022-01-19 17:24:11 +01:00
|
|
|
}
|
|
|
|
}
|
2024-07-02 19:19:05 +02:00
|
|
|
|