mirror of https://github.com/OpenVidu/openvidu.git
openvidu-browser: store openvidu-server version in OpenVidu object
parent
be0c5cbd31
commit
ce488b2884
|
@ -111,6 +111,10 @@ export class OpenVidu {
|
||||||
* @hidden
|
* @hidden
|
||||||
*/
|
*/
|
||||||
libraryVersion: string;
|
libraryVersion: string;
|
||||||
|
/**
|
||||||
|
* @hidden
|
||||||
|
*/
|
||||||
|
openviduServerVersion: string;
|
||||||
/**
|
/**
|
||||||
* @hidden
|
* @hidden
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1279,6 +1279,7 @@ export class Session extends EventDispatcher {
|
||||||
|
|
||||||
this.openvidu.wsUri = 'wss://' + url.host + '/openvidu';
|
this.openvidu.wsUri = 'wss://' + url.host + '/openvidu';
|
||||||
this.openvidu.httpUri = 'https://' + url.host;
|
this.openvidu.httpUri = 'https://' + url.host;
|
||||||
|
this.openvidu.openviduServerVersion = openviduServerVersion;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
logger.error('Token "' + token + '" is not valid')
|
logger.error('Token "' + token + '" is not valid')
|
||||||
|
|
|
@ -1022,7 +1022,7 @@ export class Stream extends EventDispatcher {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private initHarkEvents(): void {
|
protected initHarkEvents(): void {
|
||||||
if (!!this.mediaStream.getAudioTracks()[0]) {
|
if (!!this.mediaStream.getAudioTracks()[0]) {
|
||||||
// Hark events can only be set if audio track is available
|
// Hark events can only be set if audio track is available
|
||||||
if (this.streamManager.remote) {
|
if (this.streamManager.remote) {
|
||||||
|
@ -1050,7 +1050,7 @@ export class Stream extends EventDispatcher {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private initWebRtcStats(): void {
|
protected initWebRtcStats(): void {
|
||||||
this.webRtcStats = new WebRtcStats(this);
|
this.webRtcStats = new WebRtcStats(this);
|
||||||
this.webRtcStats.initWebRtcStats();
|
this.webRtcStats.initWebRtcStats();
|
||||||
|
|
||||||
|
@ -1078,7 +1078,7 @@ export class Stream extends EventDispatcher {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private getIceServersConf(): RTCIceServer[] | undefined {
|
protected getIceServersConf(): RTCIceServer[] | undefined {
|
||||||
let returnValue;
|
let returnValue;
|
||||||
if (!!this.session.openvidu.advancedConfiguration.iceServers) {
|
if (!!this.session.openvidu.advancedConfiguration.iceServers) {
|
||||||
returnValue = this.session.openvidu.advancedConfiguration.iceServers === 'freeice' ?
|
returnValue = this.session.openvidu.advancedConfiguration.iceServers === 'freeice' ?
|
||||||
|
|
Loading…
Reference in New Issue