Revision 1f44763c

View differences:

html/janus.js
1504 1504
						navigator.mediaDevices.getUserMedia(constraints)
1505 1505
							.then(function(stream) { 
1506 1506
								if(useAudio){
1507
									navigator.mediaDevices.getUserMedia({ audio: true })
1507
									navigator.mediaDevices.getUserMedia({ audio: true, video: false })
1508 1508
									.then(function (audioStream) {
1509 1509
										stream.addTrack(audioStream.getAudioTracks()[0]);
1510 1510
										gsmCallback(null, stream);
html/janus.nojquery.js
1556 1556
						navigator.mediaDevices.getUserMedia(constraints)
1557 1557
							.then(function(stream) { 
1558 1558
								if(useAudio){
1559
									navigator.mediaDevices.getUserMedia({ audio: true })
1559
									navigator.mediaDevices.getUserMedia({ audio: true, video: false })
1560 1560
									.then(function (audioStream) {
1561 1561
										stream.addTrack(audioStream.getAudioTracks()[0]);
1562 1562
										gsmCallback(null, stream);

Also available in: Unified diff