From f0d5f429215d5983c9de23ae75f9437f2211bef7 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Thu, 1 Sep 2016 13:58:26 +0100 Subject: [PATCH] whine loudly if remoteAudio element is missing --- src/components/views/voip/VideoView.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/views/voip/VideoView.js b/src/components/views/voip/VideoView.js index 487fd9f6ac..d018a2603c 100644 --- a/src/components/views/voip/VideoView.js +++ b/src/components/views/voip/VideoView.js @@ -53,7 +53,11 @@ module.exports = React.createClass({ // this needs to be somewhere at the top of the DOM which // always exists to avoid audio interruptions. // Might as well just use DOM. - return document.getElementById("remoteAudio"); + var remoteAudioElement = document.getElementById("remoteAudio"); + if (!remoteAudioElement) { + console.error("Failed to find remoteAudio element - cannot play audio! You need to add an