Class getPreviews
Returns the url of the asset previews
Defined in: getPreviews.js.
Constructor Attributes | Constructor Name and Description |
---|---|
getPreviews(src, type, trans)
Returns the url of the asset previews
Locates assets by the list of AssetIDs in 'src' and returns a url to their images.
|
Class Detail
getPreviews(src, type, trans)
Returns the url of the asset previews
Locates assets by the list of AssetIDs in 'src' and returns a url to their images. These values are parsed into a text object keyed by AssetID from the JSON file in which they are contained, and by default are displayed to the user.
'MBurl'/wf/getPreviews?src=['AssetID']
http://127.0.0.1:55555/wf/getPreviews?src=["12345"]&type=thumbnails
- Parameters:
- src
- AssetID/list of assetIDs to get the paths from.
- type
- 'thumbnail' or 'viewex' or empty for full image
- trans
- set to true to download mp4 transcodings else false for original (default is false
- Returns:
- ( {'AssetID': "path",...} )