mirror of https://github.com/OpenVidu/openvidu.git
openvidu-browser: provide mediaServer as a WebRtcPeerConfiguration property
parent
aa050b140d
commit
0d739982a8
|
@ -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) {
|
||||||
|
|
|
@ -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';
|
||||||
|
|
Loading…
Reference in New Issue