openvidu-browser: store openvidu-server version in OpenVidu object

pull/600/head
pabloFuente 2020-09-08 17:56:53 +02:00
parent be0c5cbd31
commit ce488b2884
3 changed files with 8 additions and 3 deletions

View File

@ -111,6 +111,10 @@ export class OpenVidu {
* @hidden
*/
libraryVersion: string;
/**
* @hidden
*/
openviduServerVersion: string;
/**
* @hidden
*/

View File

@ -1279,6 +1279,7 @@ export class Session extends EventDispatcher {
this.openvidu.wsUri = 'wss://' + url.host + '/openvidu';
this.openvidu.httpUri = 'https://' + url.host;
this.openvidu.openviduServerVersion = openviduServerVersion;
} else {
logger.error('Token "' + token + '" is not valid')

View File

@ -1022,7 +1022,7 @@ export class Stream extends EventDispatcher {
}
}
private initHarkEvents(): void {
protected initHarkEvents(): void {
if (!!this.mediaStream.getAudioTracks()[0]) {
// Hark events can only be set if audio track is available
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.initWebRtcStats();
@ -1078,7 +1078,7 @@ export class Stream extends EventDispatcher {
}
}
private getIceServersConf(): RTCIceServer[] | undefined {
protected getIceServersConf(): RTCIceServer[] | undefined {
let returnValue;
if (!!this.session.openvidu.advancedConfiguration.iceServers) {
returnValue = this.session.openvidu.advancedConfiguration.iceServers === 'freeice' ?