Skip to content

Commit

Permalink
Fixes #232 Emergency change to remove the use of a deprecated method
Browse files Browse the repository at this point in the history
  • Loading branch information
mikasackerman committed Jan 11, 2019
1 parent 22e6e21 commit 246c287
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client/js/webrtc.io.js
Expand Up @@ -963,7 +963,11 @@ function mergeConstraints(cons1, cons2) {
element.mozSrcObject = stream;
element.play();
} else {
element.src = wkURL.createObjectURL(stream);
try {
element.srcObject = stream;
} catch (error) {
element.src = wkURL.createObjectURL(stream);
}
}
element.play();
};
Expand Down

0 comments on commit 246c287

Please sign in to comment.