Constructors Properties Methodsadd Media addMedia ( source : string | Uint8Array | File , mimeType ?: string , filename ?: string , ) : Promise < null | string > Parameters source : string | Uint8Array | File Optional
mimeType : string Optional
filename : string Returns Promise < null | string > add Serialized Media addSerializedMedia ( data : any ) : Promise < string > Returns Promise < string > add Subtitles addSubtitles ( subtitles : Subtitles ) : string Returns string create Built In Effects createBuiltInEffects () : Promise < void > Returns Promise < void > create Filmstrip Worker createFilmstripWorker ( mediaId : string ) : Promise < void > Returns Promise < void > delete Media deleteMedia ( id : string ) : Promise < void > Returns Promise < void > destroy destroy () : Promise < void > Returns Promise < void > extract Audio From Media extractAudioFromMedia ( mediaId : string ) : Promise < null | string > Returns Promise < null | string > get All Effect Ids getAllEffectIds () : string [] Returns string [] get Built In Effect Ids getBuiltInEffectIds () : string [] Returns string [] get Filter Ids getFilterIds () : string [] Returns string [] get Registered Effect Ids getRegisteredEffectIds () : string [] Returns string [] get Subtitles Ids getSubtitlesIds () : string [] Returns string [] get Transition Ids getTransitionIds () : string [] Returns string [] init init () : Promise < void > Returns Promise < void > is Processing isProcessing () : boolean Returns boolean remove Effect removeEffect ( id : string ) : void Returns void remove Filter removeFilter ( id : string ) : void Returns void remove Subtitles removeSubtitles ( id : string ) : void Returns void remove Transition removeTransition ( id : string ) : void Returns void remove Unused Assets removeUnusedAssets () : Promise < void > Returns Promise < void > remove Unused Effects removeUnusedEffects () : void Returns void remove Unused Filters removeUnusedFilters () : void Returns void remove Unused Media removeUnusedMedia () : Promise < void > Returns Promise < void > remove Unused Subtitles removeUnusedSubtitles () : void Returns void remove Unused Transitions removeUnusedTransitions () : void Returns void replace Media replaceMedia ( id : string , file : string | Uint8Array | File , mimeType ?: string , ) : Promise < boolean > Parameters id : string file : string | Uint8Array | File Optional
mimeType : string Returns Promise < boolean > replace Serialized Media replaceSerializedMedia ( data : any ) : Promise < boolean > Returns Promise < boolean > serialize serialize () : { effects : { fragmentSrc : string ; id : string ; inputTextures ?: { mipmap ?: OFF | ON ; name : string ; scaleMode ?: NEAREST | LINEAR ; url : string ; wrapMode ?: CLAMP | REPEAT | MIRRORED_REPEAT ; } [] ; name : string ; properties : { defaultValue : Required < any > ; description ?: string ; label ?: string ; name : string ; type : PropertyDescriptionTypeEnum ; } [] ; provider : string ; } [] ; filters : { id : string ; lutUrl : string ; name : string ; provider : string } [] ; media : { customData ?: [ string , unknown ] [] ; filename : string ; hash ?: string ; id : string ; mimeType ?: string ; name ?: string ; permanentUrl ?: string ; placeholderClipIds ?: string [] ; type : string ; } [] ; subtitles : { duration : number ; id : string ; language : string ; textBlocks : { duration : number ; text : string ; time : number } [] ; } [] ; transitions : { id : string ; inputTextures ?: { mipmap ?: OFF | ON ; name : string ; scaleMode ?: NEAREST | LINEAR ; url : string ; wrapMode ?: CLAMP | REPEAT | MIRRORED_REPEAT ; } [] ; name : string ; properties : { defaultValue : Required < any > ; description ?: string ; label ?: string ; name : string ; type : PropertyDescriptionTypeEnum ; } [] ; provider : string ; transitionSrc : string ; } [] ; } Returns { effects : { fragmentSrc : string ; id : string ; inputTextures ?: { mipmap ?: OFF | ON ; name : string ; scaleMode ?: NEAREST | LINEAR ; url : string ; wrapMode ?: CLAMP | REPEAT | MIRRORED_REPEAT ; } [] ; name : string ; properties : { defaultValue : Required < any > ; description ?: string ; label ?: string ; name : string ; type : PropertyDescriptionTypeEnum ; } [] ; provider : string ; } [] ; filters : { id : string ; lutUrl : string ; name : string ; provider : string } [] ; media : { customData ?: [ string , unknown ] [] ; filename : string ; hash ?: string ; id : string ; mimeType ?: string ; name ?: string ; permanentUrl ?: string ; placeholderClipIds ?: string [] ; type : string ; } [] ; subtitles : { duration : number ; id : string ; language : string ; textBlocks : { duration : number ; text : string ; time : number } [] ; } [] ; transitions : { id : string ; inputTextures ?: { mipmap ?: OFF | ON ; name : string ; scaleMode ?: NEAREST | LINEAR ; url : string ; wrapMode ?: CLAMP | REPEAT | MIRRORED_REPEAT ; } [] ; name : string ; properties : { defaultValue : Required < any > ; description ?: string ; label ?: string ; name : string ; type : PropertyDescriptionTypeEnum ; } [] ; provider : string ; transitionSrc : string ; } [] ; } store All Media storeAllMedia () : Promise < void > Returns Promise < void > sync All Media syncAllMedia () : Promise < void > Returns Promise < void >
Deprecated
Use syncAllMedia instead, that will also remove media that are not in the library Stores all media data in the library using the storage controller. Initiates a batch operation, attempts to store each media asynchronously, and ensures that all operations are completed. If any error occurs during the process, it logs the error. Finally, it ends the batch operation.