# Installation
# Install (ONLY for iOS & Android)
# CocoaPods (Recommended)
To integrate UizaSDK into your Xcode project using CocoaPods, specify it in your Podfile
:
pod 'UizaSDK' // for iOS 10+
pod 'UizaSDK_8' // for iOS 8,9
2
Then run the following command:
pod install
# Manual Installation
Download UizaSDK.framework
and drag it into your project, add it to Embbeded Binaries section
Step 1. Add the JitPack repository to your build file
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
2
3
4
5
Step 2. Add the dependency
defaultConfig {
multiDexEnabled true
}
dependencies {
//for playing video VOD, LIVE
implementation 'com.github.uizaio.uiza-android-sdk-player:uizacoresdk:[lasted-release-number]'
//for live broadcaster
implementation 'com.github.uizaio.uiza-android-sdk-player:uizalivestream:[lasted-release-number]'
}
2
3
4
5
6
7
8
9
10
Get lasted release number HERE.
Please note if your project uses firebase: firebase-core & firebase-database ... should be same version: Basically, you need to bump all Play Services and Firebase libraries to their latest version (which may be different for each since version 15).
You may use https://mvnrepository.com/ to find the latest version for each library. See also: https://firebase.google.com/support/release-notes/android#20180523
Check example here.
# Initialize (ONLY for iOS & Android)
Always initialize the framework by the following line before calling any API functions:
import UizaSDK
UizaSDK.initWith(appId: YOUR_APP_ID, token: TOKEN, api: YOUR_DOMAIN)
2
3
YOUR_APP_ID and YOUR_DOMAIN : get from registration email
TOKEN: generate from https://docs.uiza.io/#get-api-key
- appId : get in email at registration
- token : generate HERE.
- api : get in email at registration
public class App extends MultiDexApplication {
@Override
public void onCreate() {
super.onCreate();
UZUtil.initWorkspace(this, api, token, appId);
}
}
2
3
4
5
6
7
Manifest:
<application
android:name=".App " <!-- important -->
>
2
3