Skip to content

Commit b917edf

Browse files
Starscream version 4.0.4
1 parent 27a6783 commit b917edf

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

WebRTC-Sample-App/ConferenceViewController.swift

+3-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ open class ConferenceViewController: UIViewController , AVCaptureVideoDataOutput
4242
AntMediaClient.printf("button tapped");
4343
publishStream = !publishStream;
4444
var title:String;
45-
45+
if publisherStreamId == nil {
46+
publisherStreamId = "\(Int.random(in: 0..<200))_streamId"
47+
}
4648
//TODO: don't use flag(publishStream), use more trusted info @mekya
4749
if (publishStream) {
4850
self.conferenceClient?.publish(streamId: publisherStreamId, streamerName: "Muhammadjon", streamerMeta: "{ \"photoUrl\": \"https://img.freepik.com/free-vector/businessman-character-avatar-isolated_24877-60111.jpg\"")

WebRTCiOSSDK.xcodeproj/project.pbxproj

+2-1
Original file line numberDiff line numberDiff line change
@@ -1246,7 +1246,8 @@
12461246
isa = XCRemoteSwiftPackageReference;
12471247
repositoryURL = "https://github.com/daltoniam/Starscream";
12481248
requirement = {
1249-
kind = upToNextMajorVersion;
1249+
kind = versionRange;
1250+
maximumVersion = 4.0.5;
12501251
minimumVersion = 4.0.0;
12511252
};
12521253
};

WebRTCiOSSDK.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"kind" : "remoteSourceControl",
66
"location" : "https://github.com/daltoniam/Starscream",
77
"state" : {
8-
"revision" : "ac6c0fc9da221873e01bd1a0d4818498a71eef33",
9-
"version" : "4.0.6"
8+
"revision" : "df8d82047f6654d8e4b655d1b1525c64e1059d21",
9+
"version" : "4.0.4"
1010
}
1111
}
1212
],

WebRTCiOSSDK/api/webrtc/WebRTCClient.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class WebRTCClient: NSObject {
158158
}
159159

160160
public func sendData(data: Data, binary: Bool = false) {
161-
if (self.dataChannel?.readyState == .open && self.iceConnectionState != .disconnected && self.iceConnectionState != .failed) {
161+
if (self.dataChannel?.readyState == .open) {
162162
let dataBuffer = RTCDataBuffer.init(data: data, isBinary: binary);
163163
self.dataChannel?.sendData(dataBuffer);
164164
}

0 commit comments

Comments
 (0)