streamingFileMeta.js
Methods
(fileName)#
getMetaGet cached file meta info. Includes following properties: seconds, fullPath, type, mime, fileSize and pricePerByte.
Parameters:
Name | Type | Description |
---|---|---|
fileName | string | file name |
- Source:
(mediaPath, config)#
initStreamingMetaReads all media files in *mediaPath* and caches their meta information, such has fileSize, media length in seconds, pricePerByte, etc.
Parameters:
Name | Type | Description |
---|---|---|
mediaPath | string | path to folder where media files are stored. |
config | object | including *pricePerMinute* or *pricePerMB* property. |
- Source:
Returns:
Promise indicating if meta information has been read.