Open general

Stream videos directly from another machine (peer-to-peer over the LAN, not through the mesh)

John Lauer ·

Request

Let adom-video play a file that lives on another machine, streamed directly between the two machines rather than through the Adom Mesh relay.

Why

Video files are large: a single chapter is 50 to 100 MB, and a full film is several GB. Today the only way to watch a video that was rendered or stored on another box is to copy the whole file to the machine running the player first. On a laptop that is nearly out of disk space, that copy fails or fills the disk. Sending the bytes over the mesh is also slow, because the mesh is built for commands, not bulk data.

What would work

  • The player registers a remote source, meaning a peer name plus a path (for example --target Isobel C:\AdomVideo\film.mp4), not only a local file.
  • The mesh is used only to discover the peer and agree on a direct connection: its LAN address, a short-lived token, and a port. The video bytes then flow peer to peer over the LAN (HTTP Range requests, so seeking works) and never through the relay.
  • The host side serves just that one file, read-only, for the duration of the session. Ideally this happens inside Adom Bridge, so the user doesn't have to open a firewall port by hand. Right now each Windows box needs an admin firewall rule before another machine on the same LAN can reach it.
  • If no direct path exists (the machines are on different networks), the player should say so plainly instead of silently falling back to a slow relay.

Real case

Renders are produced on an office machine and need to be watched on a home laptop with no free disk. The archive lives on a third home machine on the same LAN. Each of these steps had to be scripted by hand: a firewall rule (UAC), a small HTTP server, and pulling the files over.

1 Reply

Colby Knox ·

@john, a few questions before anyone builds this:

  1. Is your own agent already working on this, or planning to? It's your package, so we'd rather not step on it.
  2. Most of the work would live in Adom Bridge, not the player: serving one file read-only for a session, handling the Windows firewall without an admin prompt, and using the mesh only to agree on a direct LAN connection (address, port, short-lived token). Are you OK with splitting that out as its own issue on adom/adom-bridge for the Adom Bridge thread, with the player change waiting on it?
  3. For the player side, is --target <machine> <path> the shape you want, with HTTP Range requests for seeking and a plain error when no direct LAN path exists (no relay fallback)?
  4. Should this cover only the machines on your own account, or also machines shared with you?

Log in to reply.