|
Video Effects SDK 2.6.0.118490
AI-powered SDK for real-time video enhancement.
|
The entry point of the SDK. More...
#include <vb_sdk/sdk_factory.h>
Public Member Functions | |
| virtual IAuthResult * | auth (const char *customerID, pfnOnAuthCompletedCallback callback, void *ctx)=0 |
| Authorizes the instance. The SDK can't be used until authorized. | |
| virtual IAuthResult * | authWithAPIUrl (const char *customerID, const char *customApiUrl, pfnOnAuthCompletedCallback callback, void *ctx)=0 |
| The same as auth(), but sends the authorization request to a custom server. | |
| virtual IAuthResult * | authWithKey (const char *key)=0 |
| Authorizes the instance offline. | |
| virtual void | waitUntilAuthFinished ()=0 |
| Waits until asynchronous authorization is finished. | |
| virtual IFrameFactory * | createFrameFactory ()=0 |
| Creates an instance of IFrameFactory. The caller is responsible for releasing it. | |
| virtual IPipeline * | createPipeline ()=0 |
| Creates an instance of IPipeline. The caller is responsible for releasing it. | |
| Public Member Functions inherited from tsvb::IRelease | |
| virtual void | release ()=0 |
| Releases the memory that was allocated for the object. | |
The entry point of the SDK.
Obtain an instance by calling createSDKFactory() exported from the SDK library:
|
pure virtual |
Authorizes the instance. The SDK can't be used until authorized.
Performs a web request to check the customer ID and get license info.
Can be used synchronously and asynchronously.
Synchronous mode: pass nullptr as callback. The method returns IAuthResult after authorization is finished. The result is owned by the caller and must be released when it isn't needed anymore.
Asynchronous mode: pass a non-null callback. The method returns nullptr and performs authorization asynchronously; a valid IAuthResult is passed into the callback. The callback is called on an internal thread of the SDK, or on the calling thread before the method returns when authorization fails before the web request is sent. Don't call IAuthResult::release() within the callback, the result is deleted after the callback is finished.
| customerID | Customer ID string, unique identifier. |
| callback | Optional callback called when asynchronous authorization is completed. |
| ctx | Opaque callback context, passed into the callback as is. |
|
pure virtual |
|
pure virtual |
Authorizes the instance offline.
Similar to auth(), but performs license verification without web requests. Internet connection is not required.
| key | Unique client's secret key. DO NOT reveal it. |
|
pure virtual |
Creates an instance of IFrameFactory. The caller is responsible for releasing it.
|
pure virtual |
Creates an instance of IPipeline. The caller is responsible for releasing it.
Call it once the instance is authorized with auth(), authWithAPIUrl() or authWithKey().
|
pure virtual |
Waits until asynchronous authorization is finished.
If auth() was called in synchronous mode, returns immediately. Also waits until the callback is finished, so don't call it within the callback.
Don't unload the SDK library until asynchronous authorization is finished. This method can be used to be sure of that before unloading the library. On macOS the library is never unloaded, see Library lifetime.