Documentation
¶
Overview ¶
Package outplayer uploads media files to Outplayer's "Wi-Fi transfer" feature.
Outplayer (an iOS media player) exposes a GCDWebUploader HTTP server when Wi-Fi transfer is enabled. It accepts multipart form uploads at POST /upload (form fields: "path" for the destination directory and "files[]" for the file) and lists directories at GET /list?path=/.
Unlike the gowebdav transfer path, the source media lives on an rclone remote rather than local disk, so uploads are streamed: `rclone cat <remote>` is piped straight into a chunked multipart POST without staging the file on local disk. GCDWebUploader accepts a chunked (unknown Content-Length) body, so the exact file size is never required.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeDir ¶
NormalizeDir converts a user-supplied folder into the "path" form Outplayer expects: a leading and trailing slash, with the root represented as "/".
func Reachable ¶
Reachable verifies that an Outplayer target is responding by requesting a directory listing. It returns a descriptive error when the target cannot be reached, so callers can fail fast before starting a large upload.
func Upload ¶
Upload streams each rclone remote file to the Outplayer target sequentially, displaying the same Bubble Tea progress UI used by downloads and WebDAV uploads. baseURL is the target root (e.g. "http://192.168.0.34"), dir is the destination folder ("" = root), and rcloneBinary defaults to "rclone". A failed file does not stop the remaining uploads; the first error encountered is returned.
Types ¶
This section is empty.