You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
whine loudly if remoteAudio element is missing
This commit is contained in:
@@ -53,7 +53,11 @@ module.exports = React.createClass({
|
|||||||
// this needs to be somewhere at the top of the DOM which
|
// this needs to be somewhere at the top of the DOM which
|
||||||
// always exists to avoid audio interruptions.
|
// always exists to avoid audio interruptions.
|
||||||
// Might as well just use DOM.
|
// 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 <audio/> to the DOM.");
|
||||||
|
}
|
||||||
|
return remoteAudioElement;
|
||||||
},
|
},
|
||||||
|
|
||||||
getLocalVideoElement: function() {
|
getLocalVideoElement: function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user