openvidu-browser: avoid alert when onLostConnection

pull/88/merge
pabloFuente 2018-06-27 15:15:40 +02:00
parent f47a1d5172
commit 031532c594
3 changed files with 9 additions and 4 deletions

View File

@ -13,7 +13,8 @@ module.exports = {
exclude: [ exclude: [
"**/OpenViduInternal/Interfaces/Private/**", "**/OpenViduInternal/Interfaces/Private/**",
"**/OpenViduInternal/WebRtcStats/WebRtcStats.ts", "**/OpenViduInternal/WebRtcStats/WebRtcStats.ts",
"**/OpenViduInternal/VersionAdapter.ts" "**/OpenViduInternal/WebRtcPeer/WebRtcPeer.ts",
"**/OpenViduInternal/Events/StreamPropertyChangedEvent.ts"
], ],
excludeExternals: true, excludeExternals: true,
excludePrivate: true, excludePrivate: true,

View File

@ -731,7 +731,7 @@ export class Session implements EventDispatcher {
*/ */
onLostConnection(): void { 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'); 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'); location.assign(url + '/accept-certificate');
} }
return; return;
} }*/
console.warn('Lost connection in Session ' + this.sessionId); console.warn('Lost connection in Session ' + this.sessionId);
if (!!this.sessionId && !this.connection.disposed) { if (!!this.sessionId && !this.connection.disposed) {

View File

@ -15,10 +15,14 @@
* *
*/ */
/**
* See [[OpenVidu.setAdvancedConfiguration]]
*/
export interface OpenViduAdvancedConfiguration { 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; iceServers?: RTCIceServer[] | string;