File proxy using background downloads
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Sources/fileproxy
Tests
server
.gitignore
LICENSE
Makefile
Package.swift
README.md
run_tests

README.md

fileproxy

A URL proxy, or file download manager, for transient data, especially streamable media resources.

let url: URL = // Local or Remote Asset URL
let asset = AVAsset(url: url)

Motivated through AVAsset, the objective of this package is to provide the URL of a local or remote asset, downloading the file in the background if it isn’t available locally yet.

Testing

Using it in production, I know it works. I hope to add more tests. For now, you can run rudimentary tests with the Package Manager.

make test

Testing within Xcode, you’d have to start the server manually first.

node server

License

MIT