Skip to content

Commit 5e05ed9

Browse files
author
Rushi Sangani
authored
Merge pull request #1 from videosdk-live/dev-1.0.1
Framework Swift Version Update
2 parents 5147394 + 65e8656 commit 5e05ed9

10 files changed

+332
-7
lines changed

Frameworks/VideoSDK.framework/Headers/VideoSDK-Swift.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Generated by Apple Swift version 5.4.2 (swiftlang-1205.0.28.2 clang-1205.0.19.57)
1+
// Generated by Apple Swift version 5.5 (swiftlang-1300.0.31.1 clang-1300.0.29.1)
22
#ifndef VIDEOSDK_SWIFT_H
33
#define VIDEOSDK_SWIFT_H
44
#pragma clang diagnostic push
1 Byte
Binary file not shown.
Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
// swift-interface-format-version: 1.0
2+
// swift-compiler-version: Apple Swift version 5.5 (swiftlang-1300.0.31.1 clang-1300.0.29.1)
3+
// swift-module-flags: -target arm64-apple-ios12.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name VideoSDK
4+
import AVFoundation
5+
import Foundation
6+
import Starscream
7+
import Swift
8+
@_exported import VideoSDK
9+
import WebRTC
10+
import _Concurrency
11+
import vl_mediasoup_client_ios
12+
extension Foundation.Data {
13+
public func toJSONString() -> Swift.String
14+
public func toJSON() -> [Swift.String : Any]
15+
}
16+
extension Swift.String {
17+
public func toJSON() -> [Swift.String : Any]
18+
}
19+
extension Swift.Dictionary {
20+
public func toJSONString() -> Swift.String
21+
}
22+
extension Swift.Array {
23+
public func toJSONString() -> Swift.String
24+
}
25+
public enum StreamKind : Swift.String {
26+
case video
27+
case audio
28+
case share
29+
public init?(rawValue: Swift.String)
30+
public typealias RawValue = Swift.String
31+
public var rawValue: Swift.String {
32+
get
33+
}
34+
}
35+
@_hasMissingDesignatedInitializers public class MediaStream : Swift.Equatable {
36+
public var id: Swift.String {
37+
get
38+
}
39+
public var kind: VideoSDK.StreamKind {
40+
get
41+
}
42+
public var track: WebRTC.RTCMediaStreamTrack {
43+
get
44+
}
45+
public var producer: vl_mediasoup_client_ios.Producer? {
46+
get
47+
}
48+
public var consumer: vl_mediasoup_client_ios.Consumer? {
49+
get
50+
}
51+
@objc deinit
52+
}
53+
extension VideoSDK.MediaStream {
54+
public static func == (lhs: VideoSDK.MediaStream, rhs: VideoSDK.MediaStream) -> Swift.Bool
55+
}
56+
@_hasMissingDesignatedInitializers public class Meeting : Swift.Equatable {
57+
public var id: Swift.String {
58+
get
59+
}
60+
public var localParticipant: VideoSDK.Participant {
61+
get
62+
}
63+
public var participants: [Swift.String : VideoSDK.Participant] {
64+
get
65+
}
66+
@objc deinit
67+
}
68+
extension VideoSDK.Meeting {
69+
public func join()
70+
public func leave()
71+
public func enableWebcam()
72+
public func disableWebcam()
73+
public func muteMic()
74+
public func unmuteMic()
75+
public func startRecording(webhookUrl: Swift.String)
76+
public func stopRecording()
77+
}
78+
extension VideoSDK.Meeting {
79+
public func addEventListener(_ meetingEventListener: VideoSDK.MeetingEventListener)
80+
public func removeEventListener(_ meetingEventListener: VideoSDK.MeetingEventListener)
81+
}
82+
extension VideoSDK.Meeting {
83+
public static func == (lhs: VideoSDK.Meeting, rhs: VideoSDK.Meeting) -> Swift.Bool
84+
}
85+
public protocol MeetingEventListener : AnyObject {
86+
func onMeetingJoined()
87+
func onMeetingLeft()
88+
func onParticipantJoined(_ participant: VideoSDK.Participant)
89+
func onParticipantLeft(_ participant: VideoSDK.Participant)
90+
func onRecordingStarted()
91+
func onRecordingStoppped()
92+
}
93+
extension VideoSDK.MeetingEventListener {
94+
public func onMeetingJoined()
95+
public func onMeetingLeft()
96+
public func onParticipantJoined(_ participant: VideoSDK.Participant)
97+
public func onParticipantLeft(_ participant: VideoSDK.Participant)
98+
public func onRecordingStarted()
99+
public func onRecordingStoppped()
100+
}
101+
@_hasMissingDesignatedInitializers public class Participant : Swift.Equatable {
102+
public var id: Swift.String {
103+
get
104+
}
105+
public var displayName: Swift.String {
106+
get
107+
}
108+
public var videoQuality: VideoSDK.VideoQuality {
109+
get
110+
}
111+
public var isLocal: Swift.Bool {
112+
get
113+
}
114+
public var streams: [Swift.String : VideoSDK.MediaStream] {
115+
get
116+
}
117+
@objc deinit
118+
}
119+
extension VideoSDK.Participant {
120+
public func addStream(_ stream: VideoSDK.MediaStream)
121+
@discardableResult
122+
public func removeStream(_ streamId: Swift.String) -> VideoSDK.MediaStream?
123+
public func removeAllStreams()
124+
}
125+
extension VideoSDK.Participant {
126+
public func addEventListener(_ listener: VideoSDK.ParticipantEventListener)
127+
public func removeEventListener(_ listener: VideoSDK.ParticipantEventListener)
128+
}
129+
extension VideoSDK.Participant {
130+
public static func == (lhs: VideoSDK.Participant, rhs: VideoSDK.Participant) -> Swift.Bool
131+
}
132+
public protocol ParticipantEventListener {
133+
func onStreamEnabled(_ stream: VideoSDK.MediaStream, forParticipant participant: VideoSDK.Participant)
134+
func onStreamDisabled(_ stream: VideoSDK.MediaStream, forParticipant participant: VideoSDK.Participant)
135+
}
136+
extension VideoSDK.ParticipantEventListener {
137+
public func onStreamEnabled(_ stream: VideoSDK.MediaStream, forParticipant participant: VideoSDK.Participant)
138+
public func onStreamDisabled(_ stream: VideoSDK.MediaStream, forParticipant participant: VideoSDK.Participant)
139+
}
140+
public enum VideoQuality : Swift.String, Swift.CaseIterable {
141+
case high, medium, low
142+
public init?(rawValue: Swift.String)
143+
public typealias AllCases = [VideoSDK.VideoQuality]
144+
public typealias RawValue = Swift.String
145+
public static var allCases: [VideoSDK.VideoQuality] {
146+
get
147+
}
148+
public var rawValue: Swift.String {
149+
get
150+
}
151+
}
152+
@_hasMissingDesignatedInitializers final public class VideoSDK {
153+
public static func config(token: Swift.String)
154+
public static func initMeeting(meetingId: Swift.String, participantName: Swift.String = "Guest", micEnabled: Swift.Bool = true, webcamEnabled: Swift.Bool = true) -> VideoSDK.Meeting
155+
@objc deinit
156+
}
157+
extension VideoSDK.StreamKind : Swift.Equatable {}
158+
extension VideoSDK.StreamKind : Swift.Hashable {}
159+
extension VideoSDK.StreamKind : Swift.RawRepresentable {}
160+
extension VideoSDK.VideoQuality : Swift.Equatable {}
161+
extension VideoSDK.VideoQuality : Swift.Hashable {}
162+
extension VideoSDK.VideoQuality : Swift.RawRepresentable {}
Binary file not shown.
Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
// swift-interface-format-version: 1.0
2+
// swift-compiler-version: Apple Swift version 5.5 (swiftlang-1300.0.31.1 clang-1300.0.29.1)
3+
// swift-module-flags: -target arm64-apple-ios12.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name VideoSDK
4+
import AVFoundation
5+
import Foundation
6+
import Starscream
7+
import Swift
8+
@_exported import VideoSDK
9+
import WebRTC
10+
import _Concurrency
11+
import vl_mediasoup_client_ios
12+
extension Foundation.Data {
13+
public func toJSONString() -> Swift.String
14+
public func toJSON() -> [Swift.String : Any]
15+
}
16+
extension Swift.String {
17+
public func toJSON() -> [Swift.String : Any]
18+
}
19+
extension Swift.Dictionary {
20+
public func toJSONString() -> Swift.String
21+
}
22+
extension Swift.Array {
23+
public func toJSONString() -> Swift.String
24+
}
25+
public enum StreamKind : Swift.String {
26+
case video
27+
case audio
28+
case share
29+
public init?(rawValue: Swift.String)
30+
public typealias RawValue = Swift.String
31+
public var rawValue: Swift.String {
32+
get
33+
}
34+
}
35+
@_hasMissingDesignatedInitializers public class MediaStream : Swift.Equatable {
36+
public var id: Swift.String {
37+
get
38+
}
39+
public var kind: VideoSDK.StreamKind {
40+
get
41+
}
42+
public var track: WebRTC.RTCMediaStreamTrack {
43+
get
44+
}
45+
public var producer: vl_mediasoup_client_ios.Producer? {
46+
get
47+
}
48+
public var consumer: vl_mediasoup_client_ios.Consumer? {
49+
get
50+
}
51+
@objc deinit
52+
}
53+
extension VideoSDK.MediaStream {
54+
public static func == (lhs: VideoSDK.MediaStream, rhs: VideoSDK.MediaStream) -> Swift.Bool
55+
}
56+
@_hasMissingDesignatedInitializers public class Meeting : Swift.Equatable {
57+
public var id: Swift.String {
58+
get
59+
}
60+
public var localParticipant: VideoSDK.Participant {
61+
get
62+
}
63+
public var participants: [Swift.String : VideoSDK.Participant] {
64+
get
65+
}
66+
@objc deinit
67+
}
68+
extension VideoSDK.Meeting {
69+
public func join()
70+
public func leave()
71+
public func enableWebcam()
72+
public func disableWebcam()
73+
public func muteMic()
74+
public func unmuteMic()
75+
public func startRecording(webhookUrl: Swift.String)
76+
public func stopRecording()
77+
}
78+
extension VideoSDK.Meeting {
79+
public func addEventListener(_ meetingEventListener: VideoSDK.MeetingEventListener)
80+
public func removeEventListener(_ meetingEventListener: VideoSDK.MeetingEventListener)
81+
}
82+
extension VideoSDK.Meeting {
83+
public static func == (lhs: VideoSDK.Meeting, rhs: VideoSDK.Meeting) -> Swift.Bool
84+
}
85+
public protocol MeetingEventListener : AnyObject {
86+
func onMeetingJoined()
87+
func onMeetingLeft()
88+
func onParticipantJoined(_ participant: VideoSDK.Participant)
89+
func onParticipantLeft(_ participant: VideoSDK.Participant)
90+
func onRecordingStarted()
91+
func onRecordingStoppped()
92+
}
93+
extension VideoSDK.MeetingEventListener {
94+
public func onMeetingJoined()
95+
public func onMeetingLeft()
96+
public func onParticipantJoined(_ participant: VideoSDK.Participant)
97+
public func onParticipantLeft(_ participant: VideoSDK.Participant)
98+
public func onRecordingStarted()
99+
public func onRecordingStoppped()
100+
}
101+
@_hasMissingDesignatedInitializers public class Participant : Swift.Equatable {
102+
public var id: Swift.String {
103+
get
104+
}
105+
public var displayName: Swift.String {
106+
get
107+
}
108+
public var videoQuality: VideoSDK.VideoQuality {
109+
get
110+
}
111+
public var isLocal: Swift.Bool {
112+
get
113+
}
114+
public var streams: [Swift.String : VideoSDK.MediaStream] {
115+
get
116+
}
117+
@objc deinit
118+
}
119+
extension VideoSDK.Participant {
120+
public func addStream(_ stream: VideoSDK.MediaStream)
121+
@discardableResult
122+
public func removeStream(_ streamId: Swift.String) -> VideoSDK.MediaStream?
123+
public func removeAllStreams()
124+
}
125+
extension VideoSDK.Participant {
126+
public func addEventListener(_ listener: VideoSDK.ParticipantEventListener)
127+
public func removeEventListener(_ listener: VideoSDK.ParticipantEventListener)
128+
}
129+
extension VideoSDK.Participant {
130+
public static func == (lhs: VideoSDK.Participant, rhs: VideoSDK.Participant) -> Swift.Bool
131+
}
132+
public protocol ParticipantEventListener {
133+
func onStreamEnabled(_ stream: VideoSDK.MediaStream, forParticipant participant: VideoSDK.Participant)
134+
func onStreamDisabled(_ stream: VideoSDK.MediaStream, forParticipant participant: VideoSDK.Participant)
135+
}
136+
extension VideoSDK.ParticipantEventListener {
137+
public func onStreamEnabled(_ stream: VideoSDK.MediaStream, forParticipant participant: VideoSDK.Participant)
138+
public func onStreamDisabled(_ stream: VideoSDK.MediaStream, forParticipant participant: VideoSDK.Participant)
139+
}
140+
public enum VideoQuality : Swift.String, Swift.CaseIterable {
141+
case high, medium, low
142+
public init?(rawValue: Swift.String)
143+
public typealias AllCases = [VideoSDK.VideoQuality]
144+
public typealias RawValue = Swift.String
145+
public static var allCases: [VideoSDK.VideoQuality] {
146+
get
147+
}
148+
public var rawValue: Swift.String {
149+
get
150+
}
151+
}
152+
@_hasMissingDesignatedInitializers final public class VideoSDK {
153+
public static func config(token: Swift.String)
154+
public static func initMeeting(meetingId: Swift.String, participantName: Swift.String = "Guest", micEnabled: Swift.Bool = true, webcamEnabled: Swift.Bool = true) -> VideoSDK.Meeting
155+
@objc deinit
156+
}
157+
extension VideoSDK.StreamKind : Swift.Equatable {}
158+
extension VideoSDK.StreamKind : Swift.Hashable {}
159+
extension VideoSDK.StreamKind : Swift.RawRepresentable {}
160+
extension VideoSDK.VideoQuality : Swift.Equatable {}
161+
extension VideoSDK.VideoQuality : Swift.Hashable {}
162+
extension VideoSDK.VideoQuality : Swift.RawRepresentable {}
Binary file not shown.
-70.5 KB
Binary file not shown.

VideoSDKRTC.podspec

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = 'VideoSDKRTC'
11-
s.version = '1.0.0'
11+
s.version = '1.0.1'
1212
s.summary = 'Interactive Video API Experiences for Develoeprs.'
1313

1414
s.description = <<-DESC
@@ -19,10 +19,10 @@ Video sdk enables opportunity to integrate immersive video experiences into your
1919
# s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
2020
s.license = { :type => 'MIT', :file => 'LICENSE' }
2121
s.author = { 'Zujo Tech Pvt Ltd.' => 'support@zujo.io' }
22-
s.source = { :git => 'https://github.com/videosdk-live/videosdk-rtc-ios-sdk.git', :tag => 'v1.0.0' }
22+
s.source = { :git => 'https://github.com/videosdk-live/videosdk-rtc-ios-sdk.git', :tag => 'v1.0.1' }
2323

2424
s.ios.deployment_target = '12.0'
25-
#s.source_files = 'VideoSDK/Classes/**/*'
25+
s.source_files = 'VideoSDK/**/*'
2626

2727
# s.resource_bundles = {
2828
# 'VideoSDK' => ['VideoSDK/Assets/*.png']
@@ -33,7 +33,6 @@ Video sdk enables opportunity to integrate immersive video experiences into your
3333

3434
# dependencies
3535
s.dependency 'Starscream'
36-
s.dependency 'SwiftyJSON'
3736

3837
# output frameworks
3938
s.vendored_frameworks = 'Frameworks/VideoSDK.framework', 'Frameworks/vl_mediasoup_client_ios.framework', 'Frameworks/WebRTC.framework'
@@ -42,10 +41,12 @@ Video sdk enables opportunity to integrate immersive video experiences into your
4241
s.xcconfig = {
4342
'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES',
4443
'OTHER_SWIFT_FLAGS' => '-Xcc -Wno-error=non-modular-include-in-framework-module',
45-
'ENABLE_BITCODE' => 'NO'
44+
'ENABLE_BITCODE' => 'NO',
45+
'BUILD_LIBRARY_FOR_DISTRIBUTION' => 'YES',
46+
'SKIP_INSTALL' => 'NO'
4647
}
4748

4849
# swift versions
49-
s.swift_versions = ['5.1', '5.2', '5.3']
50+
s.swift_versions = ['5.1', '5.2', '5.3', '5.4', '5.5']
5051

5152
end

0 commit comments

Comments
 (0)