|
|
8 anni fa | |
|---|---|---|
| .. | ||
| app | 8 anni fa | |
| jitsi-meet.xcworkspace | 8 anni fa | |
| scripts | 8 anni fa | |
| sdk | 8 anni fa | |
| Podfile | 8 anni fa | |
| README.md | 8 anni fa | |
| apple-app-site-association | 9 anni fa | |
This directory contains the source code of the Jitsi Meet app and the Jitsi Meet SDK for iOS.
JitsiMeet is an iOS framework which embodies the whole Jitsi Meet experience and makes it reusable by third-party apps.
To get started:
Add a JitsiMeetView to your app using a Storyboard or Interface Builder,
for example.
Then, once the view has loaded, set the delegate in your controller and load the desired URL:
- (void)viewDidLoad {
[super viewDidLoad];
JitsiMeetView *jitsiMeetView = (JitsiMeetView *) self.view;
jitsiMeetView.delegate = self;
[jitsiMeetView loadURL:nil];
}
The JitsiMeetView class is the entry point to the SDK. It a subclass of
UIView which renders a full conference in the designated area.
Property for getting / setting the JitsiMeetViewDelegate on JitsiMeetView.
Property for getting / setting whether the Welcome page is enabled. If NO, a black empty view will be rendered when not in a conference. Defaults to NO.
NOTE: Must be set before loadURL:/loadURLString: for it to take effect.
[jitsiMeetView loadURL:[NSURL URLWithString:@"https://meet.jit.si/test123"]];
Loads a specific URL which may identify a conference to join. If the specified
URL is nil and the Welcome page is enabled, the Welcome page is displayed
instead.
[jitsiMeetView loadURLObject:@{
@"url": @"https://meet.jit.si/test123",
@"configOverwrite": @{
@"startWithAudioMuted": @YES,
@"startWithVideoMuted": @NO
}
}];
Loads a specific URL which may identify a conference to join. The URL is
specified in the form of an NSDictionary of properties which (1) internally
are sufficient to construct a URL (string) while (2) abstracting the specifics
of constructing the URL away from API clients/consumers. If the specified URL is
nil and the Welcome page is enabled, the Welcome page is displayed instead.
[jitsiMeetView loadURLString:@"https://meet.jit.si/test123"];
Loads a specific URL which may identify a conference to join. If the specified
URL is nil and the Welcome page is enabled, the Welcome page is displayed
instead.
In order to support Universal / deep linking, JitsiMeetView offers 2 class
methods that you app’s delegate should call in order for the app to follow those
links.
- (BOOL)application:(UIApplication *)application
continueUserActivity:(NSUserActivity *)userActivity
restorationHandler:(void (^)(NSArray *restorableObjects))restorationHandler
{
return [JitsiMeetView application:application
continueUserActivity:userActivity
restorationHandler:restorationHandler];
}
- (BOOL)application:(UIApplication *)application
openURL:(NSURL *)url
sourceApplication:(NSString *)sourceApplication
annotation:(id)annotation
{
return [JitsiMeetView application:application
openURL:url
sourceApplication:sourceApplication
annotation:annotation];
}
This delegate is optional, and can be set on the JitsiMeetView instance using
the delegate property.
It provides information about the conference state: was it joined, left, did it fail?
All methods in this delegate are optional.
Called when a joining a conference was unsuccessful or when there was an error while in a conference.
The data dictionary contains an “error” key describing the error and a “url”
key with the conference URL.
Called when a conference was joined.
The data dictionary contains a “url” key with the conference URL.
Called when a conference was left.
The data dictionary contains a “url” key with the conference URL.
Called before a conference is joined.
The data dictionary contains a “url” key with the conference URL.
Called before a conference is left.
The data dictionary contains a “url” key with the conference URL.
Called when loading the main configuration file from the Jitsi Meet deployment fails.
The data dictionary contains an “error” key with the error and a “url” key
with the conference URL which necessitated the loading of the configuration
file.