openvidu-call: cleaned code
This commit is contained in:
parent
484418d6d1
commit
1f5128057e
@ -3,7 +3,6 @@ import * as express from 'express';
|
||||
import { Request, Response } from 'express';
|
||||
import { Session } from 'openvidu-node-client';
|
||||
import { OpenViduService } from '../services/OpenViduService';
|
||||
import { OPENVIDU_URL } from '../config';
|
||||
export const app = express.Router({
|
||||
strict: true
|
||||
});
|
||||
|
||||
7574
openvidu-call/openvidu-call-front/package-lock.json
generated
7574
openvidu-call/openvidu-call-front/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,33 +1,33 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"@angular/animations": "13.1.2",
|
||||
"@angular/cdk": "13.1.2",
|
||||
"@angular/common": "13.1.2",
|
||||
"@angular/compiler": "13.1.2",
|
||||
"@angular/core": "13.1.2",
|
||||
"@angular/forms": "13.1.2",
|
||||
"@angular/material": "13.1.2",
|
||||
"@angular/platform-browser": "13.1.2",
|
||||
"@angular/platform-browser-dynamic": "13.1.2",
|
||||
"@angular/router": "13.1.2",
|
||||
"openvidu-angular": "file:openvidu-angular-2.20.0.tgz",
|
||||
"@angular/animations": "13.3.0",
|
||||
"@angular/cdk": "13.3.0",
|
||||
"@angular/common": "13.3.0",
|
||||
"@angular/compiler": "13.3.0",
|
||||
"@angular/core": "13.3.0",
|
||||
"@angular/forms": "13.3.0",
|
||||
"@angular/material": "13.3.0",
|
||||
"@angular/platform-browser": "13.3.0",
|
||||
"@angular/platform-browser-dynamic": "13.3.0",
|
||||
"@angular/router": "13.3.0",
|
||||
"openvidu-angular": "file:openvidu-angular-2.22.0-beta1.tgz",
|
||||
"openvidu-browser": "2.21.0",
|
||||
"rxjs": "7.5.2",
|
||||
"unique-names-generator": "4.6.0",
|
||||
"zone.js": "0.11.4"
|
||||
"rxjs": "7.5.5",
|
||||
"unique-names-generator": "4.7.1",
|
||||
"zone.js": "0.11.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@angular-devkit/build-angular": "13.1.3",
|
||||
"@angular/cli": "13.1.3",
|
||||
"@angular/compiler-cli": "13.1.2",
|
||||
"@angular/language-service": "13.1.2",
|
||||
"@angular-devkit/build-angular": "13.3.0",
|
||||
"@angular/cli": "13.3.0",
|
||||
"@angular/compiler-cli": "13.3.0",
|
||||
"@angular/language-service": "13.3.0",
|
||||
"@types/jasmine": "3.10.3",
|
||||
"@types/node": "16.11.9",
|
||||
"codelyzer": "6.0.1",
|
||||
"fs-extra": "9.0.1",
|
||||
"jasmine-core": "3.10.1",
|
||||
"karma": "6.3.9",
|
||||
"ng-packagr": "13.1.3",
|
||||
"ng-packagr": "13.3.0",
|
||||
"protractor": "7.0.0",
|
||||
"ts-node": "10.4.0",
|
||||
"tslib": "2.3.1",
|
||||
@ -48,5 +48,5 @@
|
||||
"start:https": "ng serve --host 192.168.1.161 --ssl --ssl-key cert.key --ssl-cert cert.crt",
|
||||
"test": "ng test openvidu-call --watch=false --code-coverage"
|
||||
},
|
||||
"version": "2.22.0-beta1"
|
||||
"version": "2.22.0-beta2"
|
||||
}
|
||||
|
||||
@ -9,19 +9,12 @@ import { environment } from 'src/environments/environment';
|
||||
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
||||
import { MatToolbarModule } from '@angular/material/toolbar';
|
||||
|
||||
// OpenVidu Components
|
||||
// import {
|
||||
// OpenviduComponentsLibraryModule,
|
||||
// UserSettingsComponent,
|
||||
// ToolbarComponent,
|
||||
// RoomComponent,
|
||||
// LayoutComponent
|
||||
// } from 'openvidu-components-library';
|
||||
|
||||
// Application Components
|
||||
import { AppComponent } from './app.component';
|
||||
import { CallComponent } from './components/call/call.component';
|
||||
import { HomeComponent } from './components/home/home.component';
|
||||
|
||||
// OpenVidu Angular
|
||||
import { OpenViduAngularConfig, OpenViduAngularModule } from 'openvidu-angular';
|
||||
|
||||
// Services
|
||||
|
||||
@ -4,7 +4,6 @@ import { ParticipantService } from 'openvidu-angular';
|
||||
|
||||
import { RestService } from '../../services/rest.service';
|
||||
|
||||
|
||||
@Component({
|
||||
selector: 'app-call',
|
||||
templateUrl: './call.component.html',
|
||||
@ -18,7 +17,12 @@ export class CallComponent implements OnInit {
|
||||
closeClicked: boolean = false;
|
||||
isSessionAlive: boolean = false;
|
||||
|
||||
constructor(private restService: RestService, private participantService: ParticipantService, private router: Router, private route: ActivatedRoute) {}
|
||||
constructor(
|
||||
private restService: RestService,
|
||||
private participantService: ParticipantService,
|
||||
private router: Router,
|
||||
private route: ActivatedRoute
|
||||
) {}
|
||||
|
||||
ngOnInit() {
|
||||
this.route.params.subscribe((params: Params) => {
|
||||
@ -28,9 +32,10 @@ export class CallComponent implements OnInit {
|
||||
|
||||
async onJoinButtonClicked() {
|
||||
let nickname;
|
||||
// Just or debuggin purposes
|
||||
const regex = /^UNSAFE_DEBUG_USE_CUSTOM_IDS_/gm;
|
||||
const match = regex.exec(this.sessionId);
|
||||
if(match && match.length > 0){
|
||||
if (match && match.length > 0) {
|
||||
console.warn('DEBUGGING SESSION');
|
||||
nickname = this.participantService.getLocalParticipant().getNickname();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user