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)]) },
|
||||
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) {
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue