Migration to OzCapsula
This guide describes the migration to the latest OzCapsula architecture: the approach where you use an encrypted to securely transmit data between frontend and backend.
Component Version Requirements
Before starting the migration, ensure that all components are updated to the minimum required versions:
API: 6.4.1.
Web SDK: 1.9.2.
Native SDKs (iOS / Android): 8.22.
Older versions are not compatible with the new capture and analysis flow.
Authentication Changes
All capture sessions now require a session_token issued by the backend.
The token must be obtained before starting video capture.
It is tied to the current session and the specific container.
The token has a limited lifetime.
Migration actions
Implement a backend call to obtain
session_token.Pass the token explicitly when creating the capture screen.
Flow Changes
Before Container (Legacy Flow)
You launch media capture.
Media is captured.
Media along with required data is sent to Oz API (using your backend as intermediate if needed).
With Container (New Flow)
You request
session_tokenfrom backend.You put additional data like metadata (if needed) into container and launch video capture with
session_token.SDK captures media, packages it into container, and returns a Media Container.
Media container is sent to Oz API (using your backend as intermediate if needed).
Migration actions
API
Upgrade to v6.4.1-40 or higher.
Switch
Content-Typeof data you send toapplication/octet-stream.For Instant API, obtain private and public keys as described here.
Web SDK
Upgrade to v1.9.2 or higher.
Ensure backend supports
session_token.In the configuration file, set
use_wasm_containerto true andapi_use_session_tokentoapiorclient(please refer to this article for details).Update initialization to pass token explicitly.
If you use the
capturearchitecture type, ensure you receive and send to your backend and then to us a blob object (application/octet-stream).
Mobile SDKs
Upgrade to v8.22 or higher.
Ensure backend supports
session_token.Implement new interfaces as described below.
Android
Launching Capture Screen
Delegate
Launching Analysis
iOS
Launching Capture Screen
Delegate
Launching Analysis
Migration Checklist
Mobile SDKs are updated to 8.22 or newer.
New public interface is implemented:
createMediaCaptureScreenwithCaptureRequest.
Web SDK is updated to 1.9.2 or newer.
use_wasm_containeris set totrue.api_use_session_tokenis set toapiorclient.if
api_use_session_token=client,session_tokenis passed inopen.options().
For best results, migrate all components simultaneously and avoid partial upgrades.
Last updated
Was this helpful?
