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)]) },
iceServers: this.getIceServersConf(),
mediaStream: this.mediaStream,
mediaServer: this.session.openvidu.mediaServer
};
if (reconnect) {
@ -1097,6 +1098,7 @@ export class Stream {
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)]) },
iceServers: this.getIceServersConf(),
mediaServer: this.session.openvidu.mediaServer
};
if (reconnect) {

View File

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