openvidu-browser: avoid alert when onLostConnection
This commit is contained in:
parent
f47a1d5172
commit
031532c594
@ -13,7 +13,8 @@ module.exports = {
|
||||
exclude: [
|
||||
"**/OpenViduInternal/Interfaces/Private/**",
|
||||
"**/OpenViduInternal/WebRtcStats/WebRtcStats.ts",
|
||||
"**/OpenViduInternal/VersionAdapter.ts"
|
||||
"**/OpenViduInternal/WebRtcPeer/WebRtcPeer.ts",
|
||||
"**/OpenViduInternal/Events/StreamPropertyChangedEvent.ts"
|
||||
],
|
||||
excludeExternals: true,
|
||||
excludePrivate: true,
|
||||
|
||||
@ -731,7 +731,7 @@ export class Session implements EventDispatcher {
|
||||
*/
|
||||
onLostConnection(): void {
|
||||
|
||||
if (!this.connection) {
|
||||
/*if (!this.connection) {
|
||||
|
||||
console.warn('Not connected to session: if you are not debugging, this is probably a certificate error');
|
||||
|
||||
@ -740,7 +740,7 @@ export class Session implements EventDispatcher {
|
||||
location.assign(url + '/accept-certificate');
|
||||
}
|
||||
return;
|
||||
}
|
||||
}*/
|
||||
|
||||
console.warn('Lost connection in Session ' + this.sessionId);
|
||||
if (!!this.sessionId && !this.connection.disposed) {
|
||||
|
||||
@ -15,10 +15,14 @@
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* See [[OpenVidu.setAdvancedConfiguration]]
|
||||
*/
|
||||
export interface OpenViduAdvancedConfiguration {
|
||||
|
||||
/**
|
||||
* Array of [RTCIceServer](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceServer) to be used by OpenVidu Browser instead of the default free ice server array (got from [freeice](https://github.com/DamonOehlman/freeice) library)
|
||||
* Array of [RTCIceServer](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceServer) to be used by OpenVidu Browser. By default OpenVidu will generate the required credentials to use the COTURN server hosted along OpenVidu Server
|
||||
* You can also set this property to string 'freeice' to force the use of free STUN servers instead (got thanks to [freeice](https://github.com/DamonOehlman/freeice) library).
|
||||
*/
|
||||
iceServers?: RTCIceServer[] | string;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user