This brings back the streaming file reader from GDX-Video versions before August 2023.
PR #77 changed the desktop implementation, so the provided file is opened directly by the FFmpeg library. I don't know exactly why, but apparently there are cases where this does not work (FFmpeg can't open the file even though the libGDX FileHandle exists).
This probably fixes #79.
The previous code was slightly tweaked to ensure proper cleanup and avoid some possible performance issues.
Was tested to work on MacOS ARM64, Linux x86_64, Windows 11 x86_64.
This brings back the streaming file reader from GDX-Video versions before August 2023.
PR #77 changed the desktop implementation, so the provided file is opened directly by the FFmpeg library. I don't know exactly why, but apparently there are cases where this does not work (FFmpeg can't open the file even though the libGDX FileHandle exists). This probably fixes #79.
The previous code was slightly tweaked to ensure proper cleanup and avoid some possible performance issues.
Was tested to work on MacOS ARM64, Linux x86_64, Windows 11 x86_64.