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:
Anton Georgiev 2018-11-21 14:07:22 -02:00 committed by GitHub
commit addb3952e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 1 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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(),
};