webrtc-adapter
Advanced tools
Comparing version 6.3.2 to 6.4.0
@@ -8,6 +8,7 @@ { | ||
"type": "git", | ||
"url": "https://github.com/webrtc/adapter.git" | ||
"url": "https://github.com/webrtchacks/adapter.git" | ||
}, | ||
"authors": [ | ||
"The WebRTC project authors (https://www.webrtc.org/)" | ||
"The WebRTC project authors (https://www.webrtc.org/)", | ||
"The adapter.js project authors (https://github.com/webrtchacks/adapter/)" | ||
], | ||
@@ -22,12 +23,5 @@ "moduleType": [ | ||
"WebRTC", | ||
"PeerConnection", | ||
"RTCPeerConnection", | ||
"getUserMedia", | ||
"Chrome", | ||
"Chromium", | ||
"Firefox", | ||
"Edge", | ||
"Adapter", | ||
"Shim" | ||
"getUserMedia" | ||
] | ||
} |
@@ -51,7 +51,2 @@ 'use strict'; | ||
}, | ||
githooks: { | ||
all: { | ||
'pre-commit': 'lint' | ||
} | ||
}, | ||
eslint: { | ||
@@ -79,3 +74,2 @@ options: { | ||
grunt.loadNpmTasks('grunt-githooks'); | ||
grunt.loadNpmTasks('grunt-eslint'); | ||
@@ -82,0 +76,0 @@ grunt.loadNpmTasks('grunt-browserify'); |
Copyright (c) 2014, The WebRTC project authors. All rights reserved. | ||
Copyright (c) 2018, The adapter.js project authors. All rights reserved. | ||
@@ -3,0 +4,0 @@ Redistribution and use in source and binary forms, with or without |
{ | ||
"name": "webrtc-adapter", | ||
"version": "6.3.2", | ||
"version": "6.4.0", | ||
"description": "A shim to insulate apps from WebRTC spec changes and browser prefix differences", | ||
@@ -9,6 +9,7 @@ "license": "BSD-3-Clause", | ||
"type": "git", | ||
"url": "https://github.com/webrtc/adapter.git" | ||
"url": "https://github.com/webrtchacks/adapter.git" | ||
}, | ||
"authors": [ | ||
"The WebRTC project authors (https://www.webrtc.org/)" | ||
"The WebRTC project authors (https://www.webrtc.org/)", | ||
"The adapter.js project authors (https://github.com/webrtchacks/adapter/)" | ||
], | ||
@@ -23,4 +24,4 @@ "scripts": { | ||
"dependencies": { | ||
"rtcpeerconnection-shim": "^1.2.10", | ||
"sdp": "^2.7.0" | ||
"rtcpeerconnection-shim": "^1.2.14", | ||
"sdp": "^2.9.0" | ||
}, | ||
@@ -34,11 +35,10 @@ "engines": { | ||
"chai": "^3.5.0", | ||
"grunt": "^0.4.5", | ||
"grunt-browserify": "^4.0.1", | ||
"grunt-cli": ">=0.1.9", | ||
"grunt": "^1.0.3", | ||
"grunt-browserify": "^5.3.0", | ||
"grunt-cli": "^1.3.1", | ||
"grunt-contrib-clean": "^1.1.0", | ||
"grunt-contrib-copy": "^1.0.0", | ||
"grunt-eslint": "^19.0.0", | ||
"grunt-githooks": "^0.3.1", | ||
"grunt-shell": "^2.1.0", | ||
"karma": "^1.7.0", | ||
"karma": "^3.0.0", | ||
"karma-browserify": "^5.2.0", | ||
@@ -53,3 +53,3 @@ "karma-chai": "^0.1.0", | ||
"karma-stability-reporter": "^3.0.1", | ||
"mocha": "^3.2.0", | ||
"mocha": "^5.2.0", | ||
"sinon": "^2.2.0", | ||
@@ -56,0 +56,0 @@ "sinon-chai": "^2.14.0", |
@@ -1,2 +0,2 @@ | ||
[![Build Status](https://travis-ci.org/webrtc/adapter.svg)](https://travis-ci.org/webrtc/adapter) | ||
[![Build Status](https://travis-ci.org/webrtcHacks/adapter.svg)](https://travis-ci.org/webrtc/adapter) | ||
@@ -6,2 +6,5 @@ # WebRTC adapter # | ||
This repository used to be part of the WebRTC organisation on github but moved. We aim to keep | ||
the old repository updated with new releases. | ||
## Install ## | ||
@@ -26,3 +29,3 @@ | ||
##### Web | ||
In the [gh-pages branch](https://github.com/webrtc/adapter/tree/gh-pages) prebuilt ready to use files can be downloaded/linked directly. | ||
In the [gh-pages branch](https://github.com/webrtcHacks/adapter/tree/gh-pages) prebuilt ready to use files can be downloaded/linked directly. | ||
Latest version can be found at https://webrtc.github.io/adapter/adapter-latest.js. | ||
@@ -44,6 +47,4 @@ Specific versions can be found at https://webrtc.github.io/adapter/adapter-N.N.N.js, e.g. https://webrtc.github.io/adapter/adapter-1.0.2.js. | ||
## Development ## | ||
Detailed information on developing in the [webrtc](https://github.com/webrtc) github repo can be found in the [WebRTC GitHub repo developer's guide](https://docs.google.com/document/d/1tn1t6LW2ffzGuYTK3366w1fhTkkzsSvHsBnOHoDfRzY/edit?pli=1#heading=h.e3366rrgmkdk). | ||
Head over to [test/README.md](https://github.com/webrtcHacks/adapter/blob/gh-pages/test/README.md) and get started developing. | ||
Head over to [test/README.md](https://github.com/webrtc/adapter/blob/gh-pages/test/README.md) and get started developing. | ||
## Publish a new version ## | ||
@@ -55,3 +56,3 @@ * Go to the adapter repository root directory | ||
* Go to the releases tab in the GitHub web ui and edit the tag. | ||
* Add a summary of the recent commits in the tag summary and a link to the diff between the previous and current version in the description, [example](https://github.com/webrtc/adapter/releases/tag/v3.4.1). | ||
* Add a summary of the recent commits in the tag summary and a link to the diff between the previous and current version in the description, [example](https://github.com/webrtcHacks/adapter/releases/tag/v3.4.1). | ||
* Go back to your checkout and run `git pull` | ||
@@ -58,0 +59,0 @@ * Run `npm publish` (you need access to the [webrtc-adapter npmjs package](https://www.npmjs.com/package/webrtc-adapter)) |
@@ -123,6 +123,10 @@ | ||
}; | ||
} else if (!('RTCRtpTransceiver' in window)) { | ||
} else { | ||
// even if RTCRtpTransceiver is in window, it is only used and | ||
// emitted in unified-plan. Unfortunately this means we need | ||
// to unconditionally wrap the event. | ||
utils.wrapPeerConnectionEvent(window, 'track', function(e) { | ||
if (!e.transceiver) { | ||
e.transceiver = {receiver: e.receiver}; | ||
Object.defineProperty(e, 'transceiver', | ||
{value: {receiver: e.receiver}}); | ||
} | ||
@@ -739,31 +743,2 @@ return e; | ||
} | ||
} else { | ||
// migrate from non-spec RTCIceServer.url to RTCIceServer.urls | ||
var OrigPeerConnection = window.RTCPeerConnection; | ||
window.RTCPeerConnection = function(pcConfig, pcConstraints) { | ||
if (pcConfig && pcConfig.iceServers) { | ||
var newIceServers = []; | ||
for (var i = 0; i < pcConfig.iceServers.length; i++) { | ||
var server = pcConfig.iceServers[i]; | ||
if (!server.hasOwnProperty('urls') && | ||
server.hasOwnProperty('url')) { | ||
utils.deprecated('RTCIceServer.url', 'RTCIceServer.urls'); | ||
server = JSON.parse(JSON.stringify(server)); | ||
server.urls = server.url; | ||
newIceServers.push(server); | ||
} else { | ||
newIceServers.push(pcConfig.iceServers[i]); | ||
} | ||
} | ||
pcConfig.iceServers = newIceServers; | ||
} | ||
return new OrigPeerConnection(pcConfig, pcConstraints); | ||
}; | ||
window.RTCPeerConnection.prototype = OrigPeerConnection.prototype; | ||
// wrap static methods. Currently just generateCertificate. | ||
Object.defineProperty(window.RTCPeerConnection, 'generateCertificate', { | ||
get: function() { | ||
return OrigPeerConnection.generateCertificate; | ||
} | ||
}); | ||
} | ||
@@ -770,0 +745,0 @@ |
@@ -25,3 +25,3 @@ /* | ||
} else { | ||
hasProperty = e.candidate.hasOwnProperty('port'); | ||
hasProperty = e.candidate.hasOwnProperty('address'); | ||
} | ||
@@ -28,0 +28,0 @@ }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23
69
844533
21662
Updatedsdp@^2.9.0