License FAQ
This topic answers common questions about licenses for the ApsaraVideo Live stream ingest SDK and player SDK.
Are the stream ingest license and the player license the same? Do they conflict if I use both?
The stream ingest license and the player license are two separate authorizations, so apply for each one separately. If you integrate both into the same app, the licenses can conflict and one of them fails validation. To keep a single authorization, replace the standalone player license with the Integrated Live Push and Play License, which also covers playback.
What do I do if the stream ingest SDK reports "License not registered"?
Before you use the stream ingest SDK, call AlivcLiveBase.registerSDK() to register the license. Otherwise, stream ingest fails with a "License not registered" error. Verify that this call runs before stream ingest initialization, and that the License Key and the License File are configured correctly. For camera preview, you can use AlivcPusherPreviewType.base as the basic preview type.
How do I apply for a license for each platform? Is the web license free?
Apply for a license separately for each platform type, such as Android, iOS, and Web. You can apply for a web player license free of charge, but you must purchase a mobile license. The app information that you bind during the application, such as the package name, Bundle ID, or domain name, must match your actual app. Otherwise, license validation fails.
Can I recover a license that I deleted by mistake?
A deleted license cannot be recovered. You can reapply for a web license free of charge, but you must repurchase a deleted mobile license. Exercise caution when you delete a license.
Do I need a license to ingest a stream? How do I choose a license for each use case?
You do not need a license for stream ingest itself. You need no license when you ingest a stream with a tool such as OBS, or when you push a stream directly to an ingest URL. A license is required only when you integrate the Alibaba Cloud stream ingest SDK or player SDK. Choose the license by use case:
Mobile apps that integrate the stream ingest SDK need a stream ingest license, which covers stream ingest scenarios only.
A web playback (monitoring) license serves playback in a web page only. You cannot use it on mobile platforms, and you cannot use it for stream ingest.
Prerequisites for the application: select the player module in your app, and bind that app as a web app. Otherwise, you cannot generate a web playback license. The app information that you bind, such as the package name, Bundle ID, or domain name, must exactly match your actual app.