Skip to content

Commit

Permalink
Check for AudioContext to enable generating audio tracks with it
Browse files Browse the repository at this point in the history
  • Loading branch information
youennf committed Nov 2, 2018
1 parent bd9dbc0 commit d72af25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webrtc/RTCPeerConnection-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ const trackFactories = {
*/
canCreate(requested) {
const supported = {
audio: !!window.MediaStreamAudioDestinationNode,
audio: !!window.AudioContext && !!window.MediaStreamAudioDestinationNode,
video: !!HTMLCanvasElement.prototype.captureStream
};

Expand Down

0 comments on commit d72af25

Please sign in to comment.