Skip to content

Commit

Permalink
fix ff offer
Browse files Browse the repository at this point in the history
  • Loading branch information
Contra committed Feb 19, 2013
1 parent bba32d1 commit fda9827
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
6 changes: 3 additions & 3 deletions examples/holla.js
Original file line number Diff line number Diff line change
Expand Up @@ -3694,8 +3694,7 @@ require.register("holla/dist/Call.js", function(exports, require, module){
require.register("holla/dist/RTC.js", function(exports, require, module){
// Generated by CoffeeScript 1.4.0
(function() {
var IceCandidate, MediaStream, PeerConnection, SessionDescription, URL, attachStream, browser, getUserMedia, mediaConstraints, mergeConstraints, processSDP, shim, supported,
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
var IceCandidate, MediaStream, PeerConnection, SessionDescription, URL, attachStream, browser, getUserMedia, mediaConstraints, mergeConstraints, processSDP, shim, supported;

PeerConnection = window.mozRTCPeerConnection || window.PeerConnection || window.webkitPeerConnection00 || window.webkitRTCPeerConnection;

Expand Down Expand Up @@ -3729,11 +3728,12 @@ require.register("holla/dist/RTC.js", function(exports, require, module){
}
addCrypto = "a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA";
out = [];
console.log(sdp.split('\r\n'));
_ref = sdp.split('\r\n');
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
line = _ref[_i];
out.push(line);
if ((__indexOf.call(line, 'm=') >= 0)) {
if (line.indexOf('m=') === 0) {
out.push(addCrypto);
}
}
Expand Down
6 changes: 3 additions & 3 deletions holla.js
Original file line number Diff line number Diff line change
Expand Up @@ -3694,8 +3694,7 @@ require.register("holla/dist/Call.js", function(exports, require, module){
require.register("holla/dist/RTC.js", function(exports, require, module){
// Generated by CoffeeScript 1.4.0
(function() {
var IceCandidate, MediaStream, PeerConnection, SessionDescription, URL, attachStream, browser, getUserMedia, mediaConstraints, mergeConstraints, processSDP, shim, supported,
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
var IceCandidate, MediaStream, PeerConnection, SessionDescription, URL, attachStream, browser, getUserMedia, mediaConstraints, mergeConstraints, processSDP, shim, supported;

PeerConnection = window.mozRTCPeerConnection || window.PeerConnection || window.webkitPeerConnection00 || window.webkitRTCPeerConnection;

Expand Down Expand Up @@ -3729,11 +3728,12 @@ require.register("holla/dist/RTC.js", function(exports, require, module){
}
addCrypto = "a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA";
out = [];
console.log(sdp.split('\r\n'));
_ref = sdp.split('\r\n');
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
line = _ref[_i];
out.push(line);
if ((__indexOf.call(line, 'm=') >= 0)) {
if (line.indexOf('m=') === 0) {
out.push(addCrypto);
}
}
Expand Down
2 changes: 1 addition & 1 deletion holla.min.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion lib/RTC.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ processSDP = (sdp) ->
return sdp unless browser is 'firefox'
addCrypto = "a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
out = []
console.log sdp.split '\r\n'
for line in sdp.split '\r\n'
out.push line
out.push addCrypto if ('m=' in line)
out.push addCrypto if line.indexOf('m=') is 0
return out.join '\r\n'

attachStream = (uri, el) ->
Expand Down

0 comments on commit fda9827

Please sign in to comment.