Private playback path
A backend can successfully fetch a completed video with an Authorization header while a simple video src pointed at the same remote API route receives an authentication error. The element is not your custom API client with arbitrary headers. This differs from basic tenant ownership: the product still needs a usable authorized delivery path for native playback and seeking. It also differs from object-URL memory cleanup, which addresses how long locally created preview URLs remain alive. AISwapLab does not document a universal public playback link or permission to publish private storage objects to avoid this integration work.
What to do next
- 01
Create a user-owned playback reference
Expose an opaque application route for the exact approved output, not a raw arbitrary URL fetch parameter. On every relevant request, resolve the application user and check the server-side task-to-owner association before fetching remote content. Keep the AISwapLab credential in the backend environment and out of page markup, analytics and the URL. A random-looking identifier is still a reference, not authorization by itself.
- 02
Preserve media behavior through the authorized backend
Forward only the headers your reviewed content route needs, including a supported byte range when appropriate. Inspect the remote status before relaying bytes so an authentication error does not become a successful video response. Keep private no-store behavior and a correct content type. Do not promise seeking merely because the first request plays; test a later seek in the actual native player. Bound transfer resources without loading every customer's full video into one shared memory buffer.
- 03
Choose any additional copy deliberately
If your product needs playback beyond the source's 24-hour private lifetime, obtain and verify an authorized copy before expiry in your own appropriately private storage. Serve or sign it only after your own ownership check and disclose its separate retention. A short-lived signed URL, if your own storage offers one, grants access according to that storage's design; it is not an AISwapLab API-key transport or an undocumented extension to the original file deadline.
A concrete example
Illustrative application: an editor's review page uses /media/approved-output-17 as its player source. The backend verifies that the signed-in reviewer may access output 17, retrieves the owned remote bytes with its server-held key and handles compatible ranges. A second user who guesses that application path is denied before the backend forwards content. The exercise should be rehearsed with synthetic media and two controlled local identities. This is an architecture proposal, not a new paid generation, production authorization penetration test or claim that the example route exists in AISwapLab.
Private playback path
| Component | Responsibility | Unsafe shortcut |
|---|---|---|
| Browser player | Requests app-owned resource | Bearer key in src |
| Application backend | Authenticates user and owns remote credential | Trust an arbitrary requested job ID |
| Optional copied object | Separate authorized retention | Assume upstream expiry deletes this copy |
Before you call it ready
- The player URL contains neither an API key nor an arbitrary remote fetch target.
- Application ownership is checked before media retrieval.
- Seeking and error responses are tested separately from initial playback.
- Copied storage, if used, has an explicit private lifetime and owner.
When to stop or choose another method
Stop if the quickest proposed fix is making a customer bucket public, embedding a secret in a query string or forwarding every browser header to the provider. A functioning video element does not prove cross-user privacy. If the remote result has expired, repair of your player cannot recreate it; use an independently retained authorized copy only if one exists. Test this delivery design before connecting it to real customer media.
