Merge pull request #6275 from prlanzarin/sfu-2.2-vb
Added voiceBridge prop to video-provider and forward it to SFU
This commit is contained in:
commit
addb3952e2
@ -388,7 +388,7 @@ class VideoProvider extends Component {
|
||||
}
|
||||
|
||||
async createWebRTCPeer(id, shareWebcam) {
|
||||
const { meetingId, sessionToken } = this.props;
|
||||
const { meetingId, sessionToken, voiceBridge } = this.props;
|
||||
let iceServers = [];
|
||||
|
||||
try {
|
||||
@ -448,6 +448,7 @@ class VideoProvider extends Component {
|
||||
sdpOffer: offerSdp,
|
||||
cameraId: id,
|
||||
meetingId,
|
||||
voiceBridge,
|
||||
};
|
||||
this.sendMessage(message);
|
||||
|
||||
|
@ -14,4 +14,5 @@ export default withTracker(() => ({
|
||||
sessionToken: VideoService.sessionToken(),
|
||||
userName: VideoService.userName(),
|
||||
enableVideoStats: getFromUserSettings('enableVideoStats', Meteor.settings.public.kurento.enableVideoStats),
|
||||
voiceBridge: VideoService.voiceBridge(),
|
||||
}))(VideoProviderContainer);
|
||||
|
@ -126,6 +126,11 @@ class VideoService {
|
||||
return Auth.sessionToken;
|
||||
}
|
||||
|
||||
voiceBridge() {
|
||||
const voiceBridge = Meetings.findOne({ meetingId: Auth.meetingID }).voiceProp.voiceConf;
|
||||
return voiceBridge;
|
||||
}
|
||||
|
||||
isConnected() {
|
||||
return this.isConnected;
|
||||
}
|
||||
@ -157,4 +162,5 @@ export default {
|
||||
meetingId: () => videoService.meetingId(),
|
||||
getAllUsersVideo: () => videoService.getAllUsersVideo(),
|
||||
sessionToken: () => videoService.sessionToken(),
|
||||
voiceBridge: () => videoService.voiceBridge(),
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user