Player APIs (BrightScript & Ja...
...
Content Management Objects
roAssetCollectionView
1 min
the roassetcollectionview method lets you mount an asset collection as a file system it is much more lightweight than using roassetrealizer, which copies the files and avoids the need to look up pool file names using roassetpoolfiles object creation the roassetcollectionview constructor takes two parameters, an roassetpool and an roassetcollection createobject("roassetcollectionview", pool as roassetpool, collection as roassetcollection) once the object is created, the device creates a temporary file system in the /storage/pool directory on the player (the pool directory is determined at runtime) to be able to get the real path of a file in roassetpool , the application should call the getpath method ifassetcollectionview getpath() as string this method returns a drive name that contains the viewed files for example print view\ getpath() might yield `pool1 ` or some other drive name html, javascript, or brightscript applications can refer to the files in the asset collection by name relative to this root path note that you will need to call mapfilenametonative() to convert filenames to a form that they can be used from javascript and html