add remoteAudioElement

This commit is contained in:
Matthew Hodgson 2015-10-21 01:22:46 +01:00
parent 5d1ad4d259
commit c8f6d46c8b
2 changed files with 8 additions and 1 deletions

View file

@ -74,8 +74,10 @@ module.exports = {
);
if (call) {
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());
// 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 this call is a conf call, don't display local video as the