openvidu-testapp: fix error when no remote ice candidate

pull/88/merge
pabloFuente 2018-06-22 16:48:54 +02:00
parent 4d5f75ecb4
commit e2b88fe265
1 changed files with 3 additions and 0 deletions

View File

@ -417,6 +417,9 @@ export class TestScenariosComponent implements OnInit, OnDestroy {
}
private parseRemoteCandidatePair(candidateStr: string) {
if (!candidateStr) {
return 'ERROR: No remote candidate available';
}
const array = candidateStr.split(/\s+/);
return {
portNumber: array[5],