libgpac
Documentation of the core library of GPAC
|
Data Structures | |
interface | _FileIO |
interface | _FileIOFactory |
FileIO allows redirecting calls to file access (open, close, read, write) to NodeJS rather than using system calls.
This allows generating content in NodeJS without any disk IO, or passing NodeJS data as input to GPAC without intermediate file.
See GF_FileIO for more details
A FileIO object is constructed from the URL to wrap and a factory object with callbacks used to access the file. For example, to wrap a file for input:
The URL passed to the constructor indentifies the file name wrapped.
Some file types, such as HLS or DASH manifest, may imply reading or writing several files. To handle these cases, a new JS object is created for each call to open().
All FileIO callbacks will be done in the main thread.