Skip to content

Commit ecd1f09

Browse files
committed
Glue in video elements.
1 parent 4f132c4 commit ecd1f09

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎src/CallHandler.js‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ limitations under the License.
5050
*
5151
* {
5252
* action: 'answer'
53-
* remote_element: DOMVideoElement, // only if type: video
54-
* local_element: DOMVideoElement, // only if type: video
5553
* room_id: <room that the answer button was pressed in>
5654
* }
5755
*/

‎src/controllers/molecules/voip/CallView.js‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,11 @@ module.exports = {
4848
if (payload.action !== 'call_state') {
4949
return;
5050
}
51-
this.setState({
52-
call: CallHandler.getCall(payload.room_id)
53-
});
51+
var call = CallHandler.getCall(payload.room_id);
52+
if (call) {
53+
call.setLocalVideoElement(this.getVideoView().getLocalVideoElement());
54+
call.setRemoteVideoElement(this.getVideoView().getRemoteVideoElement());
55+
}
5456
}
5557
};
5658

0 commit comments

Comments
 (0)