Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More

react-native-webrtc

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-webrtc - npm Package Compare versions

Comparing version 0.2.4 to 0.2.5

{
"name": "react-native-webrtc",
"version": "0.2.4",
"version": "0.2.5",
"repository": {

@@ -5,0 +5,0 @@ "type": "git",

'use strict';
var React = require('react-native');
var {
DeviceEventEmitter,
NativeModules,
} = React;
var WebRTCModule = NativeModules.WebRTCModule;
class RTCMediaStream {

@@ -11,4 +18,7 @@ _streamId: number;

}
release() {
WebRTCModule.mediaStreamRelease(this._streamId);
}
}
module.exports = RTCMediaStream;

@@ -31,5 +31,7 @@ 'use strict';

addStreamImpl(stream) {
console.log('streameew', stream);
WebRTCModule.peerConnectionAddStream(stream._streamId, this._peerConnectionId);
}
removeStreamImpl(stream) {
WebRTCModule.peerConnectionRemoveStream(stream._streamId, this._peerConnectionId);
}
createOfferImpl(success: ?Function, failure: ?Function, constraints) {

@@ -36,0 +38,0 @@ WebRTCModule.peerConnectionCreateOffer(this._peerConnectionId, (successful, data) => {

@@ -21,2 +21,5 @@ 'use strict';

}
removeStream(stream) {
this.removeStreamImpl(stream);
}
createOffer(success: ?Function, failure: ?Function, constraints) {

@@ -23,0 +26,0 @@ this.createOfferImpl(success, failure, constraints);

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet