Template:HLSVideo

From PickiPedia: A knowledge base of bluegrass, old time psychedelic jams, and other public domain music
Revision as of 23:24, 28 April 2026 by Magent (talk | contribs) (Accept positional CID arg as well as named cid= (User page transclusions use positional) (via update-page on MediaWiki MCP Server))
Jump to navigationJump to search

HLS Video Player

Embeds an HLS video from IPFS using hls.js.

Usage

Either positional or named CID parameter works:

{{HLSVideo|QmXet6QwZ7qdtDn89Kn4fzdm7LugpcmQoSzchdij4V3DLB}}
{{HLSVideo|cid=QmXet6QwZ7qdtDn89Kn4fzdm7LugpcmQoSzchdij4V3DLB}}

With thumbnail style and caption:

{{HLSVideo|cid=QmXet6QwZ7qdtDn89Kn4fzdm7LugpcmQoSzchdij4V3DLB|thumb|align=right|width=300px|caption=My video description}}

Parameters

  • cid - Required. The IPFS CID containing the HLS directory (must have master.m3u8). Accepts positional (1) or named (cid=) form.
  • width - Optional. Video width (default: 100%, or 300px if thumb)
  • max-width - Optional. Maximum width (default: 800px)
  • align - Optional. Alignment: left, right, center, none (default: none)
  • thumb - Optional. If present, uses thumbnail styling with border
  • caption - Optional. Caption text shown below the video

Semantic tagging

This template automatically creates a hidden link to the corresponding Release: page for the CID, enabling reverse lookups from Release pages to see where videos are used.

Examples

Basic:

{{#vardefine:cid|QmXet6QwZ7qdtDn89Kn4fzdm7LugpcmQoSzchdij4V3DLB}}

[[Release:{{#var:cid}}]]

Thumbnail aligned right with caption:

{{#vardefine:cid|QmXet6QwZ7qdtDn89Kn4fzdm7LugpcmQoSzchdij4V3DLB}}

Example video

[[Release:{{#var:cid}}]]