mirror of
https://github.com/jech/galene.git
synced 2024-11-09 18:25:58 +01:00
Remove last traces of onabort callback.
Everything now goes through onclose, both for up and down streams.
This commit is contained in:
parent
cd673d01d3
commit
b7f39d3290
2 changed files with 1 additions and 10 deletions
|
@ -136,7 +136,6 @@ to push a stream to the server. Given a `MediaStream` called `localStream`
|
||||||
```javascript
|
```javascript
|
||||||
let stream = serverConnection.newUpStream();
|
let stream = serverConnection.newUpStream();
|
||||||
stream.onerror = ...;
|
stream.onerror = ...;
|
||||||
stream.onabort = ...;
|
|
||||||
stream.onstatus = ...;
|
stream.onstatus = ...;
|
||||||
localStream.getTracks().forEach(t => {
|
localStream.getTracks().forEach(t => {
|
||||||
c.labels[t.id] = t.kind;
|
c.labels[t.id] = t.kind;
|
||||||
|
|
|
@ -757,8 +757,7 @@ ServerConnection.prototype.gotAbort = function(id) {
|
||||||
let c = this.up[id];
|
let c = this.up[id];
|
||||||
if(!c)
|
if(!c)
|
||||||
throw new Error('unknown up stream');
|
throw new Error('unknown up stream');
|
||||||
if(c.onabort)
|
c.close();
|
||||||
c.onabort.call(c);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -952,13 +951,6 @@ function Stream(sc, id, localId, pc, up) {
|
||||||
* @type{(this: Stream, status: string) => void}
|
* @type{(this: Stream, status: string) => void}
|
||||||
*/
|
*/
|
||||||
this.onstatus = null;
|
this.onstatus = null;
|
||||||
/**
|
|
||||||
* onabort is called when the server requested that an up stream be
|
|
||||||
* closed. It is the resposibility of the client to close the stream.
|
|
||||||
*
|
|
||||||
* @type{(this: Stream) => void}
|
|
||||||
*/
|
|
||||||
this.onabort = null;
|
|
||||||
/**
|
/**
|
||||||
* onstats is called when we have new statistics about the connection
|
* onstats is called when we have new statistics about the connection
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue