Class: NvsAssetPackageManager

NvsAssetPackageManager()

The resource package manager manages the resource packages in the video scene. During the development of SDK, the resource package manager uniformly installs, upgrades and uninstalls various stunt resource packages needed, including subtitles, themes, animation 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.

Constructor

new NvsAssetPackageManager()

Source:

Methods

changeTemplateAspectRatio(uuidString, aspectRatio)

change aspect ratio of template
Parameters:
Name Type Description
uuidString package id
aspectRatio aspect ratio
Source:
Returns:

generateTemplatePackage(innerAssetDir, uuidString, outputPath)

generate template package
Parameters:
Name Type Description
innerAssetDir inner resource path
uuidString package id
outputPath output path
Source:
Returns:

getAssetPackageRootDir()

get resource package root directory
Source:
Returns:

getAssetPackageStatus(assetPackageId, type)

get status of asset package
Parameters:
Name Type Description
assetPackageId package id
type type
Source:
Returns:

getTemplateCaptions(uuidString)

get captions of template
Parameters:
Name Type Description
uuidString package id
Source:
Returns:

getTemplateCompoundCaptions()

get compound captions of template
Source:
Returns:

getTemplateCurrentAspectRatio(uuidString)

get current aspect ratio of template
Parameters:
Name Type Description
uuidString package id
Source:
Returns:

getTemplateDefaultAspectRatio(uuidString)

get aspect ratio of template default
Parameters:
Name Type Description
uuidString package id
Source:
Returns:

getTemplateFootages(uuidString)

get template footage
Parameters:
Name Type Description
uuidString package id
Source:
Returns:

getTemplatePackageDirPath(uuidString)

get template package path
Parameters:
Name Type Description
uuidString package id
Source:
Returns:

getVideoFxAssetPackageDescription(uuidString)

get resource description of video special effects
Parameters:
Name Type Description
uuidString package id
Source:
Returns:

installAssetPackage(assetPackageFilePath, licenseFilePath, type)

install resource package
Parameters:
Name Type Description
assetPackageFilePath resource package file path
licenseFilePath license file path
type type
Source:
Returns:

isParticleFX(uuidString)

particle or not
Parameters:
Name Type Description
uuidString package id
Source:
Returns:

uninstallAssetPackage(assetPackageId, type)

uninstall resource package
Parameters:
Name Type Description
assetPackageId package id
type type
Source:
Returns:

writeTemplateXml(timeline, aspectRatio, uuidString)

write template xml
Parameters:
Name Type Description
timeline timeline
aspectRatio aspect ratio
uuidString package id
Source:
Returns: