mirror of
https://github.com/webadderallorg/Recordly.git
synced 2026-10-02 18:47:43 +00:00
On Windows, the packaged app serves the renderer from http://127.0.0.1:PORT, which causes Chromium to block file:// URLs in <video> elements — even with webSecurity disabled. This affects all users running the packaged build. Add a local media HTTP server (random port) that streams approved video files with range request support for seeking. The renderer now resolves video paths through this server instead of using file:// URLs directly. - electron/mediaServer.ts: HTTP server with path validation against approvedLocalReadPaths and Content-Range support - IPC handler 'get-local-media-url' converts file paths to HTTP URLs - resolveVideoUrl() in renderer falls back to file:// if server unavailable - Improved <video> onError to log actual MediaError details Fixes #244