@twick/video-editor / Exports / BaseMediaManager
Class: BaseMediaManager
Hierarchy
-
BaseMediaManager
Table of contents
Constructors
Methods
- addItem
- addItems
- deleteItem
- deleteItems
- getItem
- getItems
- getTotalCount
- search
- updateItem
- updateItems
Constructors
constructor
• new BaseMediaManager(): BaseMediaManager
Returns
Methods
addItem
▸ addItem(item): Promise<MediaItem>
Parameters
| Name | Type |
|---|---|
item | Omit<MediaItem, "id"> |
Returns
Promise<MediaItem>
Defined in
packages/video-editor/src/helpers/media-manager/base-media-manager.ts:6
addItems
▸ addItems(items): Promise<MediaItem[]>
Parameters
| Name | Type |
|---|---|
items | Omit<MediaItem, "id">[] |
Returns
Promise<MediaItem[]>
Defined in
packages/video-editor/src/helpers/media-manager/base-media-manager.ts:7
deleteItem
▸ deleteItem(id): Promise<boolean>
Parameters
| Name | Type |
|---|---|
id | string |
Returns
Promise<boolean>
Defined in
packages/video-editor/src/helpers/media-manager/base-media-manager.ts:12
deleteItems
▸ deleteItems(ids): Promise<boolean>
Parameters
| Name | Type |
|---|---|
ids | string[] |
Returns
Promise<boolean>
Defined in
packages/video-editor/src/helpers/media-manager/base-media-manager.ts:13
getItem
▸ getItem(id): Promise<undefined | MediaItem>
Parameters
| Name | Type |
|---|---|
id | string |
Returns
Promise<undefined | MediaItem>
Defined in
packages/video-editor/src/helpers/media-manager/base-media-manager.ts:8
getItems
▸ getItems(options?): Promise<MediaItem[]>
Parameters
| Name | Type |
|---|---|
options? | PaginationOptions |
Returns
Promise<MediaItem[]>
Defined in
packages/video-editor/src/helpers/media-manager/base-media-manager.ts:9
getTotalCount
▸ getTotalCount(): Promise<number>
Returns
Promise<number>
Defined in
packages/video-editor/src/helpers/media-manager/base-media-manager.ts:15
search
▸ search(options): Promise<MediaItem[]>
Parameters
| Name | Type |
|---|---|
options | SearchOptions |
Returns
Promise<MediaItem[]>
Defined in
packages/video-editor/src/helpers/media-manager/base-media-manager.ts:14
updateItem
▸ updateItem(id, updates): Promise<undefined | MediaItem>
Parameters
| Name | Type |
|---|---|
id | string |
updates | Partial<MediaItem> |
Returns
Promise<undefined | MediaItem>
Defined in
packages/video-editor/src/helpers/media-manager/base-media-manager.ts:10
updateItems
▸ updateItems(updates): Promise<MediaItem[]>
Parameters
| Name | Type |
|---|---|
updates | { id: string ; updates: Partial<MediaItem> }[] |
Returns
Promise<MediaItem[]>
Defined in
packages/video-editor/src/helpers/media-manager/base-media-manager.ts:11