Media Plugin

`wiki-plugin-media` — the working name for one item type that carries all archived media: YouTube captures, dropped screencast files, Fathom recordings, and later audio and podcasts. One item, many sources, one provenance contract. Part of the Anarchive Media Plan.

## The Item

Standard items first: archive output is a stock `video` item with the Media Commons caption link, so every page works with no plugin installed anywhere. The `media` item and this plugin are progressive enhancement — they recognise the caption pattern, relabel commons titles, and add the permissioned fetch. The item text follows the house DSL — UPPERCASE directives, one per line, caption lines beneath:

SOURCE https://www.youtube.com/watch?v=VIDEOID ASSET http://localhost/assets/core-delusion/cid_bafybeigdyrzt5sfp7udm7hu76uh7y26nf3efuylqabf3oclgtqy55fbzdi.mp4 CID bafybeigdyrzt5sfp7udm7hu76uh7y26nf3efuylqabf3oclgtqy55fbzdi POSTER core-delusion.jpg CLIP 00:12:30 00:14:05 Dennett on the Core Delusion — Watch on YouTube

On disk the same item carries machine-readable fields — the contract any fork can use to re-resolve the media:

{ "type": "media", "id": "a1b2c3d4e5f60001", "text": "SOURCE https://…\nASSET http://…/cid_bafy….mp4\nCID bafy…", "ipfs": { "cid": "bafy…", "clipCid": "bafy…", "hiresCid": "bafy…" } }

## Degradation Ladder

Playback resolves in order: the page's assets folder, the Pi5 gateway, a public IPFS gateway, and finally the source embed. Editing features — clip marks, re-archive — light up only when an Outpost answers a health check. On public servers the item is a player, never a controller — the same local-only activation pattern as the terminal plugin. Beyond playback, the item can fetch the high-resolution original from IPFS by its recorded `hiresCid` — pinned only on the Homebase — with Swarm streaming the planned tier after that. Given only a bare asset, the plugin recovers the CID from the filename per the Filename Convention.

## Triggers

- a media URL dropped on the page flag — the house UX layer already pattern-matches YouTube URLs on drop - a video file dropped on the flag — the Fathom and Screencasts channel - the YouTube Archive Skill, conversationally - the Clip Maker — the timed-video prototype already opens a clip ghost page

## Prior Art

The YouTube Archive Skill is the pipeline. The terminal and termflow plugins are the local-only activation pattern to copy. The Fathom recording pages — an `HTML5 m3u8` video item from the share URL — are the de-facto second source.

## See

- Anarchive Media Plan and Outpost Installation Plan — the architecture and its engine - YouTube Archive Skill and Video FFmpeg Skill — the pipeline this generalises - Anarchive Pinning, Filename Convention and Media Commons — survivability, self-naming files, the public commons - Fair Use Clip — the clip discipline

# Assets

media-plugin