Class Info |
|---|
public class MediaApplication UI SDK接口类,用于调用全局API接口。 |
Qualifier and Type | Field and Description |
|---|---|
static final String | 鉴权失败。 |
static final String | 一天内申请License次数超过了限制。 |
static final String | 参数错误。 |
static final int | 表示通过草稿启动的常量类。 |
static final int | 表示通过导入视频/图片方式的UI启动模式常量类。 |
Qualifier and Type | Method Name and Description |
|---|---|
int | deleteDrafts(List<String> draftIds) 根据草稿ID删除草稿工程。 |
List<DraftInfo> | 获取草稿列表。 |
static MediaApplication | 获取UI SDK接口类对象的单例。 |
void | launchEditorActivity(Context context, VideoEditorLaunchOption option) 设置视频编辑UI启动模式。 |
void | setAccessToken(String accessToken) 设置应用的Token。 |
void | setApiKey(String apiKey) 设置应用的API Key。 |
void | setLicenseId(String licenseId) 设置License ID,建议设置为唯一标识ID。 |
void | setLicenseErrorMessage(Map<String, Integer> messageIds) 设置License错误提示语。 |
void | setOnMediaExportCallBack(MediaExportCallBack callBack) 设置视频导出回调。 |
Field |
|---|
public static final String DAY_REQUEST_OVER_LIMIT 一天内申请License次数超过了限制。 Constant Value:"10108" |
Field |
|---|
public static final int START_MODE_IMPORT_FROM_DRAFT 表示通过草稿启动的常量类。 Constant Value:2 |
Field |
|---|
public static final int START_MODE_IMPORT_FROM_MEDIA 表示通过导入视频/图片方式UI启动的常量类。 Constant Value:1 |
Method |
|---|
public int deleteDrafts(List<String> draftIds) 根据草稿ID删除草稿工程。 |
Name | Description |
|---|---|
draftIds | 需要删除的草稿列表。 |
Type | Description |
|---|---|
int | 成功删除的草稿个数。 |
Method |
|---|
public List<DraftInfo> getDraftList() 获取草稿列表。 |
Type | Description |
|---|---|
List<DraftInfo> | 草稿列表。 |
Method |
|---|
public static MediaApplication getInstance() 获取UI SDK接口类对象的单例。 |
Type | Description |
|---|---|
MediaApplication | UI SDK接口类对象类。 |
Method |
|---|
public void launchEditorActivity(Context context, VideoEditorLaunchOption option) 设置视频编辑UI启动模式。 |
Parameters
Name | Description |
|---|---|
context | 上下文对象。 |
option | 设置启动模式的选项。 |
Method |
|---|
public void setAccessToken(String accessToken) 设置应用的Token。 |
Name | Description |
|---|---|
accessToken | 应用的Token。 |
Method |
|---|
public void setApiKey(String apiKey) 设置应用的API Key。 |
Name | Description |
|---|---|
apiKey | 应用的API Key。 |
Method |
|---|
public void setLicenseId(String licenseId) 设置License ID,建议设置为唯一标识ID。 |
Name | Description |
|---|---|
licenseId | 唯一标识的License ID。 |
Method |
|---|
public void setLicenseErrorMessage(Map<String, Integer> messageIds) 设置License错误提示语。请以下面错误码为键,提示语资源ID为值: |
Name | Description |
|---|---|
messageIds | 提示语资源ID。 |
Method |
|---|
public void setOnMediaExportCallBack(MediaExportCallBack callBack) 设置导出回调。 |
Name | Description |
|---|---|
callBack | 导出回调的实例。 |