openvidu-browser: provide mediaServer as a WebRtcPeerConfiguration property

pull/648/head
pabloFuente 2021-07-08 12:39:08 +02:00
parent aa050b140d
commit 0d739982a8
2 changed files with 3 additions and 1 deletions

View File

@ -943,6 +943,7 @@ export class Stream {
onIceConnectionStateException: (exceptionName: ExceptionEventName, message: string, data?: any) => { this.session.emitEvent('exception', [new ExceptionEvent(this.session, exceptionName, this, message, data)]) }, onIceConnectionStateException: (exceptionName: ExceptionEventName, message: string, data?: any) => { this.session.emitEvent('exception', [new ExceptionEvent(this.session, exceptionName, this, message, data)]) },
iceServers: this.getIceServersConf(), iceServers: this.getIceServersConf(),
mediaStream: this.mediaStream, mediaStream: this.mediaStream,
mediaServer: this.session.openvidu.mediaServer
}; };
if (reconnect) { if (reconnect) {
@ -1097,6 +1098,7 @@ export class Stream {
onIceCandidate: this.connection.sendIceCandidate.bind(this.connection), onIceCandidate: this.connection.sendIceCandidate.bind(this.connection),
onIceConnectionStateException: (exceptionName: ExceptionEventName, message: string, data?: any) => { this.session.emitEvent('exception', [new ExceptionEvent(this.session, exceptionName, this, message, data)]) }, onIceConnectionStateException: (exceptionName: ExceptionEventName, message: string, data?: any) => { this.session.emitEvent('exception', [new ExceptionEvent(this.session, exceptionName, this, message, data)]) },
iceServers: this.getIceServersConf(), iceServers: this.getIceServersConf(),
mediaServer: this.session.openvidu.mediaServer
}; };
if (reconnect) { if (reconnect) {

View File

@ -97,9 +97,9 @@ export interface WebRtcPeerConfiguration {
video: boolean video: boolean
}; };
simulcast: boolean; simulcast: boolean;
mediaServer: string;
onIceCandidate: (event: RTCIceCandidate) => void; onIceCandidate: (event: RTCIceCandidate) => void;
onIceConnectionStateException: (exceptionName: ExceptionEventName, message: string, data?: any) => void; onIceConnectionStateException: (exceptionName: ExceptionEventName, message: string, data?: any) => void;
iceServers?: RTCIceServer[]; iceServers?: RTCIceServer[];
mediaStream?: MediaStream | null; mediaStream?: MediaStream | null;
mode?: 'sendonly' | 'recvonly' | 'sendrecv'; mode?: 'sendonly' | 'recvonly' | 'sendrecv';