Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Allows for multiple tracks per media description.

  • Loading branch information...
commit f4ac4a1f291e7c20433d201b5ebb4bf5c6c7b2c6 1 parent 2a16db2
Stéphane Alnet authored
Showing with 14 additions and 13 deletions.
  1. +14 −13 index.js
27 index.js
View
@@ -34,20 +34,21 @@ module.exports = (function(){
localSDPSession: function() {
// generate SDP: complete set (since this is an offer)
- var session = new SDP.Session({
- var media = [];
- // Flattens media and tracks. This should use RFC3388 instead.
- this._localStreamSet.forEach(function(m) {
- var d = m.description();
- if(d.length) {
- d.forEach(function(track) {
- media.push(track);
- });
- } else {
- media.push(d);
- }
- });
+ var media = [];
+ // Flattens media and tracks. This should use RFC3388 instead.
+ this._localStreamSet.forEach(function(m) {
+ var d = m.description();
+ if(d.length) {
+ d.forEach(function(track) {
+ media.push(track);
+ });
+ } else {
+ media.push(d);
+ }
+ });
+
+ var session = new SDP.Session({
origin: {
username: 'RTCPeerConnection',
sessionID: this.id,
Please sign in to comment.
Something went wrong with that request. Please try again.