@scrypted/types
Advanced tools
Comparing version 0.0.3 to 0.0.4
11
index.ts
@@ -1472,2 +1472,7 @@ | ||
/** | ||
* Convert a media object to a Buffer of the given mime type, and them parse it as JSON. | ||
*/ | ||
convertMediaObjectToJSON<T>(mediaObject: MediaObject, toMimeType: string): Promise<T>; | ||
/** | ||
* Convert a media object to a Buffer of the given mime type. | ||
@@ -1494,3 +1499,2 @@ */ | ||
* Create a MediaObject. The media will be created from the provided FFmpeg input arguments. | ||
* @deprecated | ||
*/ | ||
@@ -1500,5 +1504,6 @@ createFFmpegMediaObject(ffmpegInput: FFMpegInput): MediaObject; | ||
/** | ||
* Create a MediaObject. The mime type needs to be provided up front, but the data can be a URL string, Buffer, or a Promise for a URL string or Buffer. | ||
* Create a MediaObject. | ||
* The data must be a Buffer, or a JSON object that will be serialized to a Buffer. | ||
*/ | ||
createMediaObject(data: string | Buffer, mimeType: string): MediaObject; | ||
createMediaObject(data: any | Buffer, mimeType: string): MediaObject; | ||
@@ -1505,0 +1510,0 @@ /** |
{ | ||
"name": "@scrypted/types", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
217132
5063