react-native-webrtc 1.100.1 → 106.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ISSUE_TEMPLATE.md +17 -13
- package/README.md +46 -129
- package/android/src/main/java/com/oney/WebRTCModule/PeerConnectionObserver.java +160 -165
- package/android/src/main/java/com/oney/WebRTCModule/SerializeUtils.java +279 -0
- package/android/src/main/java/com/oney/WebRTCModule/WebRTCModule.java +361 -56
- package/android/src/main/java/com/oney/WebRTCModule/WebRTCView.java +5 -1
- package/ios/RCTWebRTC/RCTConvert+WebRTC.m +2 -6
- package/ios/RCTWebRTC/ScreenCapturer.m +0 -1
- package/ios/RCTWebRTC/SerializeUtils.h +25 -0
- package/ios/RCTWebRTC/SerializeUtils.m +219 -0
- package/ios/RCTWebRTC/WebRTCModule+RTCPeerConnection.m +284 -128
- package/ios/RCTWebRTC/WebRTCModule+Transceivers.m +216 -0
- package/ios/RCTWebRTC/WebRTCModule.h +15 -4
- package/ios/RCTWebRTC/WebRTCModule.m +26 -6
- package/lib/commonjs/EventEmitter.js +24 -0
- package/lib/commonjs/EventEmitter.js.map +1 -1
- package/lib/commonjs/Logger.js +65 -0
- package/lib/commonjs/Logger.js.map +1 -0
- package/lib/commonjs/MediaStream.js +1 -1
- package/lib/commonjs/MediaStream.js.map +1 -1
- package/lib/commonjs/MediaStreamTrack.js +4 -2
- package/lib/commonjs/MediaStreamTrack.js.map +1 -1
- package/lib/commonjs/Permissions.js +1 -1
- package/lib/commonjs/Permissions.js.map +1 -1
- package/lib/commonjs/RTCDataChannel.js.map +1 -1
- package/lib/commonjs/RTCErrorEvent.js +33 -0
- package/lib/commonjs/RTCErrorEvent.js.map +1 -0
- package/lib/commonjs/RTCPeerConnection.js +354 -103
- package/lib/commonjs/RTCPeerConnection.js.map +1 -1
- package/lib/commonjs/RTCRtcpParameters.js +24 -0
- package/lib/commonjs/RTCRtcpParameters.js.map +1 -0
- package/lib/commonjs/RTCRtpCapabilities.js +79 -0
- package/lib/commonjs/RTCRtpCapabilities.js.map +1 -0
- package/lib/commonjs/RTCRtpCodecCapability.js +25 -0
- package/lib/commonjs/RTCRtpCodecCapability.js.map +1 -0
- package/lib/commonjs/RTCRtpCodecParameters.js +33 -0
- package/lib/commonjs/RTCRtpCodecParameters.js.map +1 -0
- package/lib/commonjs/RTCRtpEncodingParameters.js +81 -0
- package/lib/commonjs/RTCRtpEncodingParameters.js.map +1 -0
- package/lib/commonjs/RTCRtpHeaderExtension.js +27 -0
- package/lib/commonjs/RTCRtpHeaderExtension.js.map +1 -0
- package/lib/commonjs/RTCRtpParameters.js +26 -0
- package/lib/commonjs/RTCRtpParameters.js.map +1 -0
- package/lib/commonjs/RTCRtpReceiveParameters.js +20 -0
- package/lib/commonjs/RTCRtpReceiveParameters.js.map +1 -0
- package/lib/commonjs/RTCRtpReceiver.js +51 -0
- package/lib/commonjs/RTCRtpReceiver.js.map +1 -0
- package/lib/commonjs/RTCRtpSendParameters.js +60 -0
- package/lib/commonjs/RTCRtpSendParameters.js.map +1 -0
- package/lib/commonjs/RTCRtpSender.js +85 -0
- package/lib/commonjs/RTCRtpSender.js.map +1 -0
- package/lib/commonjs/RTCRtpTransceiver.js +141 -0
- package/lib/commonjs/RTCRtpTransceiver.js.map +1 -0
- package/lib/commonjs/RTCSessionDescription.js.map +1 -1
- package/lib/commonjs/RTCTrackEvent.js +32 -0
- package/lib/commonjs/RTCTrackEvent.js.map +1 -0
- package/lib/commonjs/RTCUtil.js +20 -37
- package/lib/commonjs/RTCUtil.js.map +1 -1
- package/lib/commonjs/getDisplayMedia.js.map +1 -1
- package/lib/commonjs/getUserMedia.js.map +1 -1
- package/lib/commonjs/index.js +127 -3
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/EventEmitter.js +21 -0
- package/lib/module/EventEmitter.js.map +1 -1
- package/lib/module/Logger.js +53 -0
- package/lib/module/Logger.js.map +1 -0
- package/lib/module/MediaStream.js +1 -1
- package/lib/module/MediaStream.js.map +1 -1
- package/lib/module/MediaStreamTrack.js +4 -2
- package/lib/module/MediaStreamTrack.js.map +1 -1
- package/lib/module/Permissions.js +1 -1
- package/lib/module/Permissions.js.map +1 -1
- package/lib/module/RTCDataChannel.js.map +1 -1
- package/lib/module/RTCErrorEvent.js +22 -0
- package/lib/module/RTCErrorEvent.js.map +1 -0
- package/lib/module/RTCPeerConnection.js +348 -103
- package/lib/module/RTCPeerConnection.js.map +1 -1
- package/lib/module/RTCRtcpParameters.js +15 -0
- package/lib/module/RTCRtcpParameters.js.map +1 -0
- package/lib/module/RTCRtpCapabilities.js +63 -0
- package/lib/module/RTCRtpCapabilities.js.map +1 -0
- package/lib/module/RTCRtpCodecCapability.js +16 -0
- package/lib/module/RTCRtpCodecCapability.js.map +1 -0
- package/lib/module/RTCRtpCodecParameters.js +24 -0
- package/lib/module/RTCRtpCodecParameters.js.map +1 -0
- package/lib/module/RTCRtpEncodingParameters.js +72 -0
- package/lib/module/RTCRtpEncodingParameters.js.map +1 -0
- package/lib/module/RTCRtpHeaderExtension.js +18 -0
- package/lib/module/RTCRtpHeaderExtension.js.map +1 -0
- package/lib/module/RTCRtpParameters.js +17 -0
- package/lib/module/RTCRtpParameters.js.map +1 -0
- package/lib/module/RTCRtpReceiveParameters.js +8 -0
- package/lib/module/RTCRtpReceiveParameters.js.map +1 -0
- package/lib/module/RTCRtpReceiver.js +39 -0
- package/lib/module/RTCRtpReceiver.js.map +1 -0
- package/lib/module/RTCRtpSendParameters.js +49 -0
- package/lib/module/RTCRtpSendParameters.js.map +1 -0
- package/lib/module/RTCRtpSender.js +70 -0
- package/lib/module/RTCRtpSender.js.map +1 -0
- package/lib/module/RTCRtpTransceiver.js +125 -0
- package/lib/module/RTCRtpTransceiver.js.map +1 -0
- package/lib/module/RTCSessionDescription.js.map +1 -1
- package/lib/module/RTCTrackEvent.js +23 -0
- package/lib/module/RTCTrackEvent.js.map +1 -0
- package/lib/module/RTCUtil.js +18 -36
- package/lib/module/RTCUtil.js.map +1 -1
- package/lib/module/getDisplayMedia.js.map +1 -1
- package/lib/module/getUserMedia.js.map +1 -1
- package/lib/module/index.js +35 -4
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/EventEmitter.d.ts +3 -0
- package/lib/typescript/Logger.d.ts +13 -0
- package/lib/typescript/MediaDevices.d.ts +2 -2
- package/lib/typescript/MediaStream.d.ts +6 -6
- package/lib/typescript/MediaStreamTrack.d.ts +10 -9
- package/lib/typescript/RTCDataChannel.d.ts +4 -2
- package/lib/typescript/RTCErrorEvent.d.ts +12 -0
- package/lib/typescript/RTCPeerConnection.d.ts +42 -11
- package/lib/typescript/RTCRtcpParameters.d.ts +8 -0
- package/lib/typescript/RTCRtpCapabilities.d.ts +19 -0
- package/lib/typescript/RTCRtpCodecCapability.d.ts +7 -0
- package/lib/typescript/RTCRtpCodecParameters.d.ts +14 -0
- package/lib/typescript/RTCRtpEncodingParameters.d.ts +21 -0
- package/lib/typescript/RTCRtpHeaderExtension.d.ts +10 -0
- package/lib/typescript/RTCRtpParameters.d.ts +14 -0
- package/lib/typescript/RTCRtpReceiveParameters.d.ts +4 -0
- package/lib/typescript/RTCRtpReceiver.d.ts +15 -0
- package/lib/typescript/RTCRtpSendParameters.d.ts +17 -0
- package/lib/typescript/RTCRtpSender.d.ts +21 -0
- package/lib/typescript/RTCRtpTransceiver.d.ts +35 -0
- package/lib/typescript/RTCTrackEvent.d.ts +15 -0
- package/lib/typescript/RTCUtil.d.ts +5 -9
- package/lib/typescript/getDisplayMedia.d.ts +2 -1
- package/lib/typescript/getUserMedia.d.ts +2 -1
- package/lib/typescript/index.d.ts +16 -3
- package/package.json +6 -4
- package/react-native-webrtc.podspec +1 -1
- package/src/EventEmitter.ts +21 -1
- package/src/Logger.ts +49 -0
- package/src/MediaStream.ts +11 -11
- package/src/MediaStreamTrack.ts +14 -13
- package/src/Permissions.ts +1 -1
- package/src/RTCDataChannel.ts +11 -8
- package/src/RTCErrorEvent.ts +21 -0
- package/src/RTCPeerConnection.ts +400 -158
- package/src/RTCRtcpParameters.ts +14 -0
- package/src/RTCRtpCapabilities.ts +54 -0
- package/src/RTCRtpCodecCapability.ts +13 -0
- package/src/RTCRtpCodecParameters.ts +23 -0
- package/src/RTCRtpEncodingParameters.ts +67 -0
- package/src/RTCRtpHeaderExtension.ts +18 -0
- package/src/RTCRtpParameters.ts +21 -0
- package/src/RTCRtpReceiveParameters.ts +7 -0
- package/src/RTCRtpReceiver.ts +35 -0
- package/src/RTCRtpSendParameters.ts +51 -0
- package/src/RTCRtpSender.ts +72 -0
- package/src/RTCRtpTransceiver.ts +125 -0
- package/src/RTCSessionDescription.ts +3 -3
- package/src/RTCTrackEvent.ts +21 -0
- package/src/RTCUtil.ts +20 -40
- package/src/getDisplayMedia.ts +1 -1
- package/src/getUserMedia.ts +2 -2
- package/src/index.ts +51 -6
- package/tools/build-webrtc.py +32 -33
- package/tools/downloadBitcode.sh +2 -12
- package/tools/downloadWebRTC.js +21 -12
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
#import "SerializeUtils.h"
|
|
2
|
+
|
|
3
|
+
@implementation SerializeUtils
|
|
4
|
+
+ (NSDictionary *) transceiverToJSONWithPeerConnectionId: (NSNumber *) id
|
|
5
|
+
transceiver:(RTCRtpTransceiver * _Nonnull) transceiver {
|
|
6
|
+
NSMutableDictionary *result = [NSMutableDictionary new];
|
|
7
|
+
|
|
8
|
+
result[@"id"] = transceiver.sender.senderId;
|
|
9
|
+
result[@"peerConnectionId"] = id;
|
|
10
|
+
result[@"mid"] = transceiver.mid;
|
|
11
|
+
result[@"direction"] = [SerializeUtils serializeDirection: transceiver.direction];
|
|
12
|
+
|
|
13
|
+
RTCRtpTransceiverDirection currentDirection;
|
|
14
|
+
if ([transceiver currentDirection: ¤tDirection]) {
|
|
15
|
+
result[@"currentDirection"] = [SerializeUtils serializeDirection: currentDirection];
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
result[@"isStopped"] = [NSNumber numberWithBool:transceiver.isStopped];
|
|
19
|
+
result[@"receiver"] = [SerializeUtils receiverToJSONWithPeerConnectionId: id receiver: transceiver.receiver];
|
|
20
|
+
result[@"sender"] = [SerializeUtils senderToJSONWithPeerConnectionId: id sender: transceiver.sender];
|
|
21
|
+
|
|
22
|
+
return result;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
+ (NSMutableArray *) constructTransceiversInfoArrayWithPeerConnection: (RTCPeerConnection *) peerConnection
|
|
26
|
+
peerConnectionId: (NSNumber *) peerConnectionId {
|
|
27
|
+
NSMutableArray *transceiverUpdates = [NSMutableArray new];
|
|
28
|
+
|
|
29
|
+
for (RTCRtpTransceiver *transceiver in peerConnection.transceivers) {
|
|
30
|
+
RTCRtpTransceiverDirection currentDirection;
|
|
31
|
+
if ([transceiver currentDirection: ¤tDirection]) {
|
|
32
|
+
NSMutableDictionary *transceiverUpdate= [NSMutableDictionary new];
|
|
33
|
+
transceiverUpdate[@"transceiverId"] = transceiver.sender.senderId;
|
|
34
|
+
transceiverUpdate[@"peerConnectionId"] = peerConnectionId;
|
|
35
|
+
transceiverUpdate[@"mid"] = transceiver.mid;
|
|
36
|
+
NSString *currentDirectionSerialized = [SerializeUtils serializeDirection: currentDirection];
|
|
37
|
+
transceiverUpdate[@"currentDirection"] = currentDirectionSerialized;
|
|
38
|
+
transceiverUpdate[@"senderRtpParameters"] = [SerializeUtils parametersToJSON:transceiver.sender.parameters];
|
|
39
|
+
|
|
40
|
+
[transceiverUpdates addObject:transceiverUpdate];
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
return transceiverUpdates;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
+ (NSDictionary *) senderToJSONWithPeerConnectionId: (NSNumber *) id
|
|
49
|
+
sender: (RTCRtpSender *) sender {
|
|
50
|
+
NSMutableDictionary *senderDictionary= [NSMutableDictionary new];
|
|
51
|
+
senderDictionary[@"id"] = sender.senderId;
|
|
52
|
+
senderDictionary[@"peerConnectionId"] = id;
|
|
53
|
+
|
|
54
|
+
if (sender.track) {
|
|
55
|
+
senderDictionary[@"track"] = [SerializeUtils trackToJSONWithPeerConnectionId: id track: sender.track];
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
senderDictionary[@"rtpParameters"] = [SerializeUtils parametersToJSON: sender.parameters];
|
|
59
|
+
|
|
60
|
+
return senderDictionary;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
+ (NSDictionary *) receiverToJSONWithPeerConnectionId: (NSNumber *) id
|
|
64
|
+
receiver: (RTCRtpReceiver *) receiver {
|
|
65
|
+
NSMutableDictionary *receiverDictionary = [NSMutableDictionary new];
|
|
66
|
+
receiverDictionary[@"id"] = receiver.receiverId;
|
|
67
|
+
receiverDictionary[@"peerConnectionId"] = id;
|
|
68
|
+
|
|
69
|
+
if (receiver.track) {
|
|
70
|
+
receiverDictionary[@"track"] = [SerializeUtils trackToJSONWithPeerConnectionId: id track: receiver.track];
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
return receiverDictionary;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
+ (NSDictionary *) parametersToJSON: (RTCRtpParameters *) params {
|
|
77
|
+
NSMutableDictionary *paramsDictionary = [NSMutableDictionary new];
|
|
78
|
+
|
|
79
|
+
NSMutableDictionary *rtcpDictionary = [NSMutableDictionary new];
|
|
80
|
+
rtcpDictionary[@"cname"] = params.rtcp.cname;
|
|
81
|
+
rtcpDictionary[@"reducedSize"] = [NSNumber numberWithBool: params.rtcp.isReducedSize];
|
|
82
|
+
|
|
83
|
+
NSMutableArray *headerExtensions = [NSMutableArray new];
|
|
84
|
+
|
|
85
|
+
for (RTCRtpHeaderExtension *extension in params.headerExtensions) {
|
|
86
|
+
NSMutableDictionary *extensionDictionary = [NSMutableDictionary new];
|
|
87
|
+
extensionDictionary[@"id"] = [NSNumber numberWithInt: extension.id];
|
|
88
|
+
extensionDictionary[@"uri"] = extension.uri;
|
|
89
|
+
extensionDictionary[@"encrypted"] = [NSNumber numberWithBool: extension.isEncrypted];
|
|
90
|
+
|
|
91
|
+
[headerExtensions addObject: extensionDictionary];
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
NSMutableArray *encodings = [NSMutableArray new];
|
|
95
|
+
|
|
96
|
+
for (RTCRtpEncodingParameters *encoding in params.encodings) {
|
|
97
|
+
NSMutableDictionary *encodingDictionary = [NSMutableDictionary new];
|
|
98
|
+
|
|
99
|
+
encodingDictionary[@"active"] = [NSNumber numberWithBool: encoding.isActive];
|
|
100
|
+
|
|
101
|
+
if (encoding.maxBitrateBps) {
|
|
102
|
+
encodingDictionary[@"maxBitrate"] = encoding.maxBitrateBps;
|
|
103
|
+
}
|
|
104
|
+
if (encoding.maxFramerate) {
|
|
105
|
+
encodingDictionary[@"maxFramerate"] = encoding.maxFramerate;
|
|
106
|
+
}
|
|
107
|
+
if (encoding.scaleResolutionDownBy) {
|
|
108
|
+
encodingDictionary[@"scaleResolutionDownBy"] = encoding.scaleResolutionDownBy;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
[encodings addObject: encodingDictionary];
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
NSMutableArray *codecs = [NSMutableArray new];
|
|
115
|
+
|
|
116
|
+
for (RTCRtpCodecParameters *codec in params.codecs) {
|
|
117
|
+
NSMutableDictionary *codecDictionary = [NSMutableDictionary new];
|
|
118
|
+
|
|
119
|
+
codecDictionary[@"payloadType"] = [NSNumber numberWithInt: codec.payloadType];
|
|
120
|
+
codecDictionary[@"mimeType"] = codec.name;
|
|
121
|
+
codecDictionary[@"clockRate"] = codec.clockRate;
|
|
122
|
+
|
|
123
|
+
if (codec.numChannels) {
|
|
124
|
+
codecDictionary[@"channels"] = codec.numChannels;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
codecDictionary[@"sdpFmtpLine"] = codec.parameters;
|
|
128
|
+
|
|
129
|
+
[codecs addObject: codecDictionary];
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
paramsDictionary[@"transactionId"] = params.transactionId;
|
|
133
|
+
paramsDictionary[@"rtcp"] = rtcpDictionary;
|
|
134
|
+
paramsDictionary[@"headerExtensions"] = headerExtensions;
|
|
135
|
+
paramsDictionary[@"encodings"] = encodings;
|
|
136
|
+
paramsDictionary[@"codecs"] = codecs;
|
|
137
|
+
|
|
138
|
+
if (params.degradationPreference) {
|
|
139
|
+
paramsDictionary[@"degradationPreference"] = params.degradationPreference;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
return paramsDictionary;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
+ (NSDictionary *) trackToJSONWithPeerConnectionId: (NSNumber *) id
|
|
146
|
+
track: (RTCMediaStreamTrack *) track {
|
|
147
|
+
NSString *readyState;
|
|
148
|
+
switch (track.readyState) {
|
|
149
|
+
case RTCMediaStreamTrackStateLive:
|
|
150
|
+
readyState = @"Live";
|
|
151
|
+
case RTCMediaStreamTrackStateEnded:
|
|
152
|
+
readyState = @"Ended";
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
return @{
|
|
156
|
+
@"id": track.trackId,
|
|
157
|
+
@"peerConnectionId": id,
|
|
158
|
+
@"kind": track.kind,
|
|
159
|
+
@"enabled": [NSNumber numberWithBool:track.isEnabled],
|
|
160
|
+
@"readyState": readyState,
|
|
161
|
+
@"remote": [NSNumber numberWithBool:YES],
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
+ (NSString *) serializeDirection: (RTCRtpTransceiverDirection) direction {
|
|
166
|
+
if (direction == RTCRtpTransceiverDirectionInactive) {
|
|
167
|
+
return @"inactive";
|
|
168
|
+
} else if (direction == RTCRtpTransceiverDirectionRecvOnly) {
|
|
169
|
+
return @"recvonly";
|
|
170
|
+
} else if (direction == RTCRtpTransceiverDirectionSendOnly) {
|
|
171
|
+
return @"sendonly";
|
|
172
|
+
} else if (direction == RTCRtpTransceiverDirectionSendRecv) {
|
|
173
|
+
return @"sendrecv";
|
|
174
|
+
} else if (direction == RTCRtpTransceiverDirectionStopped) {
|
|
175
|
+
return @"stopped";
|
|
176
|
+
}
|
|
177
|
+
return nil;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
+ (RTCRtpTransceiverDirection) parseDirection: (NSString *) direction {
|
|
181
|
+
if ([direction isEqual: @"inactive"]) {
|
|
182
|
+
return RTCRtpTransceiverDirectionInactive;
|
|
183
|
+
} else if ([direction isEqual: @"recvonly"]) {
|
|
184
|
+
return RTCRtpTransceiverDirectionRecvOnly;
|
|
185
|
+
} else if ([direction isEqual: @"sendonly"]) {
|
|
186
|
+
return RTCRtpTransceiverDirectionSendOnly;
|
|
187
|
+
} else if ([direction isEqual: @"sendrecv"]) {
|
|
188
|
+
return RTCRtpTransceiverDirectionSendRecv;
|
|
189
|
+
} else if ([direction isEqual: @"stopped"]) {
|
|
190
|
+
return RTCRtpTransceiverDirectionStopped;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
return RTCRtpTransceiverDirectionInactive;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
+ (NSDictionary *)streamToJSONWithPeerConnectionId: (NSNumber *) id
|
|
198
|
+
stream: (RTCMediaStream *) stream
|
|
199
|
+
streamReactTag: (NSString *) streamReactTag {
|
|
200
|
+
NSMutableDictionary *streamDictionary = [NSMutableDictionary new];
|
|
201
|
+
|
|
202
|
+
streamDictionary[@"streamId"] = stream.streamId;
|
|
203
|
+
streamDictionary[@"streamReactTag"] = streamReactTag;
|
|
204
|
+
|
|
205
|
+
NSMutableArray *tracks = [NSMutableArray new];
|
|
206
|
+
|
|
207
|
+
for (RTCAudioTrack *audioTrack in stream.audioTracks) {
|
|
208
|
+
[tracks addObject:[SerializeUtils trackToJSONWithPeerConnectionId:id track:audioTrack]];
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
for (RTCVideoTrack *videoTrack in stream.videoTracks) {
|
|
212
|
+
[tracks addObject:[SerializeUtils trackToJSONWithPeerConnectionId:id track:videoTrack]];
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
streamDictionary[@"tracks"] = tracks;
|
|
216
|
+
|
|
217
|
+
return streamDictionary;
|
|
218
|
+
}
|
|
219
|
+
@end
|