Skip to content

Commit 1fc9ba1

Browse files
committed
video call
1 parent acba248 commit 1fc9ba1

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

Gradgap/ProjectHelper/API_Helper.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ struct API {
1616
// static let BASE_URL = "http://54.197.250.33/staging/api/"
1717
// static let IMAGE_URL = "https://gradgab.s3.us-east-2.amazonaws.com/staging/images/best/"
1818
// Local
19-
static let BASE_URL = "http://3.82.95.119/development/api/" //"http://c17819afdf3e.ngrok.io/api/"//
19+
static let BASE_URL = "http://c17819afdf3e.ngrok.io/api/"//"http://3.82.95.119/development/api/" //
2020
static let IMAGE_URL = "https://gradgab.s3.us-east-2.amazonaws.com/development/images/best/"
2121

2222
struct USER {

Gradgap/View/Home/BookingDetailVC.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class BookingDetailVC: UIViewController {
113113
}
114114

115115
@IBAction func clickToJoinCall(_ sender: Any) {
116-
// joinCallVM.getVideoCallData(request: VideoCallDataRequest(bookingRef: bookingDetail.id))
116+
joinCallVM.getVideoCallData(request: VideoCallDataRequest(bookingRef: bookingDetail.id))
117117

118118
// joinMeeting(callKitOption: .outgoing, meetingId: "vishAB", name: "Vishal")
119119

Gradgap/View/VideoCall/utils/JoinRequestService.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import Alamofire
1313
class JoinRequestService: NSObject {
1414
static let logger = ConsoleLogger(name: "JoiningRequestService")
1515

16-
private static func urlRewriter(url: String) -> String {
16+
private static func urlRewriter2(url: String) -> String {
1717
// changing url
1818
// return url.replacingOccurrences(of: "example.com", with: "my.example.com")
1919
return url
@@ -57,7 +57,7 @@ class JoinRequestService: NSObject {
5757
let joinMeetingResponse = try jsonDecoder.decode(JoinMeetingResponse.self, from: data)
5858
let meetingResp = getCreateMeetingResponse(from: joinMeetingResponse)
5959
let attendeeResp = getCreateAttendeeResponse(from: joinMeetingResponse)
60-
return MeetingSessionConfiguration(createMeetingResponse: meetingResp, createAttendeeResponse: attendeeResp, urlRewriter: urlRewriter)
60+
return MeetingSessionConfiguration(createMeetingResponse: meetingResp, createAttendeeResponse: attendeeResp, urlRewriter: urlRewriter2)
6161
} catch {
6262
logger.error(msg: error.localizedDescription)
6363
return nil

Gradgap/ViewModel/VideoCall/JoinCallViewModel.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ struct JoinCallViewModel {
5151
}
5252

5353

54-
func urlRewriter2(url: String) -> String {
54+
public static func urlRewriter(url: String) -> String {
5555
// changing url
5656
// return url.replacingOccurrences(of: "example.com", with: "my.example.com")
5757
return url
@@ -67,7 +67,7 @@ struct JoinCallViewModel {
6767

6868
let meetingResp = getCreateMeetingResponse2(from: meeting)
6969
let attendeeResp = getCreateAttendeeResponse2(from: attendee)
70-
return MeetingSessionConfiguration(createMeetingResponse: meetingResp, createAttendeeResponse: attendeeResp, urlRewriter: urlRewriter2)
70+
return MeetingSessionConfiguration(createMeetingResponse: meetingResp, createAttendeeResponse: attendeeResp, urlRewriter: JoinCallViewModel.urlRewriter)
7171
}
7272

7373
func getCreateMeetingResponse2(from joinMeetingResponse: MeetingData) -> CreateMeetingResponse {

Podfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ target 'Gradgap' do
1616
pod 'MFSideMenu'
1717
pod 'FSCalendar'
1818
pod 'Alamofire','4.9.1'
19-
19+
2020
pod 'FBSDKLoginKit'
2121
pod 'GoogleSignIn'
2222
#pod 'GooglePlaces'

0 commit comments

Comments
 (0)