mirror of
https://github.com/jech/galene.git
synced 2024-11-22 16:45:58 +01:00
Update README.FRONTEND.
This commit is contained in:
parent
976df35e81
commit
4d2c87bdc4
1 changed files with 8 additions and 2 deletions
|
@ -73,7 +73,7 @@ will trigger. There, you update your user interface and request incoming
|
||||||
streams:
|
streams:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
serverConnection.onjoined = function(kind, group, perms, status, data, message) {
|
serverConnection.onjoined = function(kind, group, perms, status, data, error, message) {
|
||||||
switch(kind) {
|
switch(kind) {
|
||||||
case 'join':
|
case 'join':
|
||||||
this.request({'':['audio','video']});
|
this.request({'':['audio','video']});
|
||||||
|
@ -87,7 +87,13 @@ serverConnection.onjoined = function(kind, group, perms, status, data, message)
|
||||||
document.location.href = message;
|
document.location.href = message;
|
||||||
break;
|
break;
|
||||||
case 'fail':
|
case 'fail':
|
||||||
|
if(error === 'need-username') {
|
||||||
|
// the user attempted to login with a token that does not
|
||||||
|
// specify a username. Display a dialog requesting a username,
|
||||||
|
// then join again
|
||||||
|
} else {
|
||||||
// display the friendly error message
|
// display the friendly error message
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue