Browse Source

Improved audiocontext compatibilty.

pull/39/head
Simon Eisenmann 11 years ago
parent
commit
31cf3fe140
  1. 2
      static/js/mediastream/usermedia.js

2
static/js/mediastream/usermedia.js

@ -106,7 +106,7 @@ define(['jquery', 'underscore', 'audiocontext', 'webrtc.adapter'], function($, _ @@ -106,7 +106,7 @@ define(['jquery', 'underscore', 'audiocontext', 'webrtc.adapter'], function($, _
this.stop();
}, this);
if (this.audioProcessor) {
if (this.audioProcessor && context.createMediaStreamSource) {
// Connect to audioProcessor.
this.audioSource = context.createMediaStreamSource(stream);
//console.log("got source", this.audioSource);

Loading…
Cancel
Save