set up remoteAudioElement

This commit is contained in:
Matthew Hodgson 2015-10-21 01:21:39 +01:00
parent 98ea35253a
commit 3b988b0eac

View file

@ -54,8 +54,10 @@ module.exports = {
var call = CallHandler.getCall(roomId); var call = CallHandler.getCall(roomId);
if (call) { if (call) {
call.setLocalVideoElement(this.getVideoView().getLocalVideoElement()); call.setLocalVideoElement(this.getVideoView().getLocalVideoElement());
// N.B. the remote video element is used for playback for audio for voice calls
call.setRemoteVideoElement(this.getVideoView().getRemoteVideoElement()); call.setRemoteVideoElement(this.getVideoView().getRemoteVideoElement());
// give a separate element for audio stream playback - both for voice calls
// and for the voice stream of screen captures
call.setRemoteAudioElement(this.getVideoView().getRemoteAudioElement());
} }
if (call && call.type === "video" && call.state !== 'ended') { if (call && call.type === "video" && call.state !== 'ended') {
this.getVideoView().getLocalVideoElement().style.display = "initial"; this.getVideoView().getLocalVideoElement().style.display = "initial";