mirror of
https://github.com/jech/galene.git
synced 2024-12-22 15:25:48 +01:00
Implement command renegotiate.
This commit is contained in:
parent
c6108f08d5
commit
3cbbfbacdd
1 changed files with 10 additions and 0 deletions
|
@ -1809,6 +1809,16 @@ commands.subgroups = {
|
|||
}
|
||||
};
|
||||
|
||||
commands.renegotiate = {
|
||||
description: 'renegotiate media streams',
|
||||
f: (c, r) => {
|
||||
for(let id in serverConnection.up)
|
||||
serverConnection.up[id].restartIce();
|
||||
for(let id in serverConnection.down)
|
||||
serverConnection.down[id].restartIce();
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* parseCommand splits a string into two space-separated parts. The first
|
||||
* part may be quoted and may include backslash escapes.
|
||||
|
|
Loading…
Reference in a new issue