1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00
This commit is contained in:
Matthew Hodgson
2016-08-31 16:31:49 +01:00
parent b0782885d5
commit c791881c87
2 changed files with 7 additions and 2 deletions

View File

@@ -74,6 +74,10 @@ MatrixCall.ERR_LOCAL_OFFER_FAILED = "local_offer_failed";
*/
MatrixCall.ERR_NO_USER_MEDIA = "no_user_media";
/**
* Lookup from opaque queue ID to a promise for media element operations that
* need to be serialised into a given queue
*/
MatrixCall.mediaPromises = {};
utils.inherits(MatrixCall, EventEmitter);
@@ -990,7 +994,7 @@ var _tryPlayRemoteAudioStream = function(self) {
setTimeout(function() {
var ael = self.getRemoteAudioElement();
if (ael.play) {
self.playElement(vel, "remoteAudio");
self.playElement(ael, "remoteAudio");
}
// OpenWebRTC does not support oniceconnectionstatechange yet
if (self.webRtc.isOpenWebRTC()) {