Glue in video elements.
This commit is contained in:
parent
4f132c418f
commit
ecd1f09095
|
@ -50,8 +50,6 @@ limitations under the License.
|
||||||
*
|
*
|
||||||
* {
|
* {
|
||||||
* action: 'answer'
|
* action: 'answer'
|
||||||
* remote_element: DOMVideoElement, // only if type: video
|
|
||||||
* local_element: DOMVideoElement, // only if type: video
|
|
||||||
* room_id: <room that the answer button was pressed in>
|
* room_id: <room that the answer button was pressed in>
|
||||||
* }
|
* }
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -48,9 +48,11 @@ module.exports = {
|
||||||
if (payload.action !== 'call_state') {
|
if (payload.action !== 'call_state') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.setState({
|
var call = CallHandler.getCall(payload.room_id);
|
||||||
call: CallHandler.getCall(payload.room_id)
|
if (call) {
|
||||||
});
|
call.setLocalVideoElement(this.getVideoView().getLocalVideoElement());
|
||||||
|
call.setRemoteVideoElement(this.getVideoView().getRemoteVideoElement());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue