MeiCam SDK For Web
3.12.1
|
The asset package manager manages the asset packages in the video scene. During the development of SDK, the asset package manager uniformly installs, upgrades and uninstalls various stunt asset packages needed, including captions, animated stickers, etc. When installing, upgrading and uninstalling, there will be corresponding error prompt types in case of errors, so as to quickly locate and solve the errors. More...
Public Member Functions | |
constructor () | |
setInternalObject (obj) | |
Set internal object. More... | |
getInternalObject () | |
Get internal object. More... | |
installAssetPackage (assetPackageFilePath, licenseFilePath, type) | |
Install asset package. After calling this funtion, onFinishAssetPackageInstallation will be received with the result of installation. onFinishAssetPackageInstallation contains assetPackageId, assetPackageFilePath, assetPackageType and error parameters. assetPackageId is the asset package id of the finished installation, assetPackageFilePath is the asset package file path of the finished installation, assetPackageType is the asset package type of the finished installation, error is the error of the finished installation, see NvsAssetPackageErrorEnum. More... | |
upgradeAssetPackage (assetPackageFilePath, licenseFilePath, type) | |
Upgrade asset package. After calling this funtion, onFinishAssetPackageUpgrading will be received with the result of upgrading. onFinishAssetPackageUpgrading contains assetPackageId, assetPackageFilePath, assetPackageType and error parameters. assetPackageId is the asset package id of the finished upgrading, assetPackageFilePath is the asset package file path of the finished upgrading, assetPackageType is the asset package type of the finished upgrading, error is the error of the finished upgrading, see NvsAssetPackageErrorEnum. More... | |
uninstallAssetPackage (assetPackageId, type) | |
Uninstall asset package. More... | |
getAssetPackageStatus (assetPackageId, type) | |
Get the status of the asset package. More... | |
getAssetPackageVersion (assetPackageId, type) | |
Get the version of the asset package. More... | |
getAssetPackageContentType (assetPackageId, type) | |
Get the content type of the asset package. More... | |
isParticleFX (uuidString) | |
Determines whether it is a particle effect. More... | |
getVideoFxAssetPackageDescription (uuidString) | |
Get the description of the VideoFx package. More... | |
getTemplateFootages (uuidString) | |
Gets the footage description list of the Template asset. More... | |
getTemplateCaptions (uuidString) | |
Gets the caption description list of the Template asset. More... | |
getTemplateCompoundCaptions (uuidString) | |
Gets the compound caption description list of the Template asset. More... | |
getTemplatePackageDirPath (uuidString) | |
get template package path More... | |
getTemplateCurrentAspectRatio (uuidString) | |
Gets the aspect ratio which is template using. More... | |
getTemplateDefaultAspectRatio (uuidString) | |
Gets the default aspect ratio of template. More... | |
writeTemplateXml (timeline, aspectRatio, uuidString) | |
Write template xml. More... | |
generateTemplatePackage (innerAssetDir, uuidString, outputPath) | |
Generate template asset package.Returns suc or not. More... | |
writeProjectXml (timeline, aspectRatio, uuidString) | |
Write project xml. More... | |
generateProjectPackage (innerAssetDir, uuidString, outputPath) | |
Generate project asset package. More... | |
setTemplateCustomResourceDir (uuidString, dir) | |
Set templates/project custom resource folders. More... | |
getAssetPackageRootDir () | |
Get resource package root directory. More... | |
changeTemplateAspectRatio (uuidString, aspectRatio) | |
Change aspect ratio of template. More... | |
getAssetPackageMinSdkVersion (assetPackageId, type) | |
Get the minimum Sdk version supported of asset package. More... | |
getExpValueList (assetPackageId, type) | |
Get all expression value list of asset package. More... | |
getTranslationMap (assetPackageId, type) | |
Get translation map of asset package. More... | |
The asset package manager manages the asset packages in the video scene. During the development of SDK, the asset package manager uniformly installs, upgrades and uninstalls various stunt asset packages needed, including captions, animated stickers, etc. When installing, upgrading and uninstalling, there will be corresponding error prompt types in case of errors, so as to quickly locate and solve the errors.
|
inline |
Change aspect ratio of template.
{String} | uuidString Special effect uuid |
{Number} | aspectRatio The aspect ratio |
|
inline |
@constructor
|
inline |
Generate project asset package.
{String} | innerAssetDir Path of internal assets of template |
{String} | uuidString project resource package ID |
{String} | outputPath Output path of project asset package |
|
inline |
Generate template asset package.Returns suc or not.
{String} | innerAssetDir Path of internal assets of template |
{String} | uuidString Template resource package ID |
{String} | outputPath Output path of template asset package |
|
inline |
Get the content type of the asset package.
{String} | assetPackageId Asset package id |
{Number} | type Asset package type, see NvsAssetPackageTypeEnum. |
|
inline |
Get the minimum Sdk version supported of asset package.
{String} | assetPackageId Package ID |
{Number} | type The type of package |
|
inline |
Get resource package root directory.
|
inline |
Get the status of the asset package.
{String} | assetPackageId Asset package id |
{Number} | type Asset package type, see NvsAssetPackageTypeEnum. |
|
inline |
Get the version of the asset package.
{String} | assetPackageId Asset package id |
{Number} | type Asset package type, see NvsAssetPackageTypeEnum. |
|
inline |
Get all expression value list of asset package.
{String} | assetPackageId Package ID |
{Number} | type The type of package |
|
inline |
Get internal object.
|
inline |
Gets the caption description list of the Template asset.
{String} | uuidString Special effect uuid |
|
inline |
Gets the compound caption description list of the Template asset.
{String} | uuidString Special effect uuid |
|
inline |
Gets the aspect ratio which is template using.
{String} | uuidString Special effect uuid |
|
inline |
Gets the default aspect ratio of template.
{String} | uuidString Special effect uuid |
|
inline |
Gets the footage description list of the Template asset.
{String} | uuidString Special effect uuid |
|
inline |
get template package path
{String} | uuidString Special effect uuid |
|
inline |
Get translation map of asset package.
{String} | assetPackageId Package ID |
{Number} | type The type of package |
|
inline |
Get the description of the VideoFx package.
{String} | uuidString Asset package id |
|
inline |
Install asset package. After calling this funtion, onFinishAssetPackageInstallation will be received with the result of installation. onFinishAssetPackageInstallation contains assetPackageId, assetPackageFilePath, assetPackageType and error parameters. assetPackageId is the asset package id of the finished installation, assetPackageFilePath is the asset package file path of the finished installation, assetPackageType is the asset package type of the finished installation, error is the error of the finished installation, see NvsAssetPackageErrorEnum.
{String} | assetPackageFilePath File path of the asset package to be installed |
{String} | licenseFilePath License file path of the asset package to be installed |
{Number} | type The type of asset package to be installed, see NvsAssetPackageTypeEnum. |
|
inline |
Determines whether it is a particle effect.
{String} | uuidString Particle effect uuid |
|
inline |
Set internal object.
{Object} | obj Internal object |
|
inline |
Set templates/project custom resource folders.
{String} | uuidString Path of internal assets of template |
{String} | dir project resource package ID |
|
inline |
Uninstall asset package.
{String} | assetPackageId Id of asset package to be uninstalled |
{Number} | type The type of asset package to be uninstalled, see NvsAssetPackageTypeEnum. |
|
inline |
Upgrade asset package. After calling this funtion, onFinishAssetPackageUpgrading will be received with the result of upgrading. onFinishAssetPackageUpgrading contains assetPackageId, assetPackageFilePath, assetPackageType and error parameters. assetPackageId is the asset package id of the finished upgrading, assetPackageFilePath is the asset package file path of the finished upgrading, assetPackageType is the asset package type of the finished upgrading, error is the error of the finished upgrading, see NvsAssetPackageErrorEnum.
{String} | assetPackageFilePath File path of the asset package to upgrade |
{String} | licenseFilePath License file path of the asset package to upgrade |
{Number} | type The type of asset package to upgrade, see NvsAssetPackageTypeEnum. |
|
inline |
Write project xml.
{NvsTimeline} | timeline The timeline |
{Number} | aspectRatio The aspect ratio |
{String} | uuidString Special effect uuid |
|
inline |
Write template xml.
{NvsTimeline} | timeline The timeline |
{Number} | aspectRatio The aspect ratio |
{String} | uuidString Special effect uuid |