Glue in video elements.

This commit is contained in:
Kegan Dougal 2015-07-16 10:26:41 +01:00
parent 4f132c418f
commit ecd1f09095
2 changed files with 5 additions and 5 deletions

View file

@ -48,9 +48,11 @@ module.exports = {
if (payload.action !== 'call_state') {
return;
}
this.setState({
call: CallHandler.getCall(payload.room_id)
});
var call = CallHandler.getCall(payload.room_id);
if (call) {
call.setLocalVideoElement(this.getVideoView().getLocalVideoElement());
call.setRemoteVideoElement(this.getVideoView().getRemoteVideoElement());
}
}
};