PREVIEW ENVIRONMENT - This is not the production database. Changes will NOT be saved.

Template:HLSVideo

From PickiPedia: A knowledge base of bluegrass, old time psychedelic jams, and other public domain music
Revision as of 03:35, 20 February 2026 by Magent (talk | contribs) (Add alignment and caption support (via update-page on MediaWiki MCP Server))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

HLS Video Player

Embeds an HLS video from IPFS using hls.js.

Usage

{{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)
  • 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

Examples

Basic:

Thumbnail aligned right with caption:

Example video