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
|
||||
*/
|
||||
libraryVersion: string;
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
openviduServerVersion: string;
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -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' ?
|
||||
|
|
Loading…
Reference in New Issue