# Video License

The Jabber Guest SDK for iOS uses H.264 AVC video, which requires activation of a license agreement by each user. When your application calls either the startCall() or startSelfView() API — either directly or by using the CJGuestViewController -- the user will be prompted to activate the video license with an AlertView. Before activating the license, the user can view the video license, and/or cancel the AlertView without activating the license.

If your application calls the startCall() and/or startSelfView() API directly, be aware that no local or remote video will be rendered unless and until the user chooses to Activate the video license. Also, the startCall() and startView() APIs return immediately, before the user chooses to Activate or not. Therefore, you must pass a completion block when calling these APIs, which will be executed once the user dismisses the AlertView. For example:

    [self startCall: ^(BOOL isActivated) {
            if ( isActivated )
                // do something
            else
                // do something else
        } ];

Once the user activates the video license, they will not be prompted to do so again for subsequent calls. If the app is uninstalled and reinstalled, the video license will need to be reactivated.

Finally, if your company has it’s own license agreement for H.264 AVC video from MPEG LA, and you wish to disable the display of the video license AlertView, you may place the following code in your app:

    [[CJGuestVideoLicense sharedInstance] disableActivation];

See the Jabber Guest SDK for iOS sample apps for where to place this call.

If you disable the built-in activation capability of the Jabber SDK for iOS, you do so at your own risk and are responsible for any royalties or other fees associated with your use of the H.264 AVC video codec.