Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
Zoom_SDK
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sai Sebastian
Zoom_SDK
Commits
71b368ab
Commit
71b368ab
authored
Jun 09, 2023
by
Sai Sebastian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update SwiftFlutterZoomSdkPlugin.swift Zak Token
parent
b42bef01
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
15 deletions
+20
-15
SwiftFlutterZoomSdkPlugin.swift
ios/Classes/SwiftFlutterZoomSdkPlugin.swift
+20
-15
No files found.
ios/Classes/SwiftFlutterZoomSdkPlugin.swift
View file @
71b368ab
...
...
@@ -72,16 +72,18 @@ public class SwiftFlutterZoomSdkPlugin: NSObject, FlutterPlugin,FlutterStreamHan
context
.
enableLog
=
true
context
.
bundleResPath
=
pluginBundlePath
MobileRTC
.
shared
()
.
initialize
(
context
)
let
auth
=
MobileRTC
.
shared
()
.
getAuthService
()
MobileRTC
.
shared
()
.
getMeetingSettings
()?
.
meetingInviteHidden
=
true
auth
?
.
delegate
=
self
.
authenticationDelegate
.
onAuth
(
result
)
if
let
appKey
=
arguments
[
"appKey"
]
{
auth
?
.
clientKey
=
appKey
}
if
let
appSecret
=
arguments
[
"appSecret"
]
{
auth
?
.
clientSecret
=
appSecret
}
if
let
appKey
=
arguments
[
"appKey"
]
{
print
(
"Got response from join:
\(
appKey
)
"
)
auth
?
.
clientKey
=
appKey
}
if
let
appSecret
=
arguments
[
"appSecret"
]
{
auth
?
.
clientSecret
=
appSecret
}
//MobileRTC.shared().setMobileRTCClientKey("Your Client Key", clientSecret: "Your Client Secret")
auth
?
.
sdkAuth
()
}
...
...
@@ -92,7 +94,7 @@ public class SwiftFlutterZoomSdkPlugin: NSObject, FlutterPlugin,FlutterStreamHan
if
((
authService
?
.
isLoggedIn
())
==
true
)
{
self
.
startMeeting
(
call
:
call
,
result
:
result
);
}
else
{
let
arguments
=
call
.
arguments
as!
Dictionary
<
String
,
String
?
>
let
_
arguments
=
call
.
arguments
as!
Dictionary
<
String
,
String
?
>
//authService?.login(withEmail: arguments["userId"]!!, password: arguments["userPassword"]!!, rememberMe: false)
if
((
authService
?
.
isLoggedIn
())
==
true
)
{
self
.
startMeeting
(
call
:
call
,
result
:
result
);
...
...
@@ -107,7 +109,7 @@ public class SwiftFlutterZoomSdkPlugin: NSObject, FlutterPlugin,FlutterStreamHan
if
((
authService
?
.
isLoggedIn
())
==
true
)
{
self
.
startMeetingNormalInternal
(
call
:
call
,
result
:
result
);
}
else
{
let
arguments
=
call
.
arguments
as!
Dictionary
<
String
,
String
?
>
let
_
arguments
=
call
.
arguments
as!
Dictionary
<
String
,
String
?
>
//authService?.login(withEmail: arguments["userId"]!!, password: arguments["userPassword"]!!, rememberMe: false)
if
((
authService
?
.
isLoggedIn
())
==
true
)
{
self
.
startMeetingNormalInternal
(
call
:
call
,
result
:
result
);
...
...
@@ -147,7 +149,7 @@ public class SwiftFlutterZoomSdkPlugin: NSObject, FlutterPlugin,FlutterStreamHan
let
meetingService
=
MobileRTC
.
shared
()
.
getMeetingService
()
let
meetingSettings
=
MobileRTC
.
shared
()
.
getMeetingSettings
()
print
(
"Got response from join:ssssssss
\(
MobileRTC
.
shared
()
.
isSupportedCustomizeMeetingUI
()
)
"
)
if
(
meetingService
!=
nil
)
{
let
arguments
=
call
.
arguments
as!
Dictionary
<
String
,
String
?
>
...
...
@@ -157,7 +159,9 @@ public class SwiftFlutterZoomSdkPlugin: NSObject, FlutterPlugin,FlutterStreamHan
meetingSettings
?
.
setAutoConnectInternetAudio
(
parseBoolean
(
data
:
arguments
[
"noDisconnectAudio"
]
!
,
defaultValue
:
false
))
meetingSettings
?
.
setMuteAudioWhenJoinMeeting
(
parseBoolean
(
data
:
arguments
[
"noAudio"
]
!
,
defaultValue
:
false
))
meetingSettings
?
.
meetingShareHidden
=
parseBoolean
(
data
:
arguments
[
"disableShare"
]
!
,
defaultValue
:
false
)
meetingSettings
?
.
meetingInviteHidden
=
parseBoolean
(
data
:
arguments
[
"disableDrive"
]
!
,
defaultValue
:
false
)
meetingSettings
?
.
meetingInviteHidden
=
true
meetingSettings
?
.
meetingInviteUrlHidden
=
true
//meetingSettings?.topBarHidden=true
meetingSettings
?
.
meetingTitleHidden
=
parseBoolean
(
data
:
arguments
[
"disableTitlebar"
]
!
,
defaultValue
:
false
)
let
viewopts
=
parseBoolean
(
data
:
arguments
[
"viewOptions"
]
!
,
defaultValue
:
false
)
if
viewopts
{
...
...
@@ -166,12 +170,13 @@ public class SwiftFlutterZoomSdkPlugin: NSObject, FlutterPlugin,FlutterStreamHan
}
// print("Got response from join: \(joinMeetingParameters.mem)")
//Setting up Join Meeting parameter
//let joinMeetingParameters = MobileRTCMeetingJoinParam()
let
joinMeetingParameters
=
MobileRTCMeetingJoinParam
()
//Setting up Custom Join Meeting parameter
joinMeetingParameters
.
userName
=
arguments
[
"userId"
]
!!
joinMeetingParameters
.
meetingNumber
=
arguments
[
"meetingId"
]
!!
joinMeetingParameters
.
webinarToken
=
arguments
[
"zoomAccessToken"
]
!!
joinMeetingParameters
.
customerKey
=
=
arguments
[
"jwtSignature"
]
!!
joinMeetingParameters
.
zak
=
arguments
[
"zoomAccessToken"
]
!!
joinMeetingParameters
.
customerKey
=
arguments
[
"jwtSignature"
]
!!
//joinMeetingParameters.webinarToken="6KWye9SgmDNJpLoiE_VbrnyYr51JqYznhhIW140Aymk.DQMAAAATsesehhZYelp4UEREZlJuT3FEblZ5bktPbjZnAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
let
hasPassword
=
arguments
[
"meetingPassword"
]
!
!=
nil
if
hasPassword
{
...
...
@@ -408,7 +413,7 @@ public class SwiftFlutterZoomSdkPlugin: NSObject, FlutterPlugin,FlutterStreamHan
}
//Zoom SDK Authentication Listner - On onMobileRTCLoginReturn get status
public
func
onMobileRTCLoginReturn
(
_
returnValue
:
Int
){
public
func
_
onMobileRTCLoginReturn
(
_
returnValue
:
Int
){
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment