Template:HLSVideo

From PickiPedia: A knowledge base of bluegrass, old time psychedelic jams, and other public domain music
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:

Release:QmXet6QwZ7qdtDn89Kn4fzdm7LugpcmQoSzchdij4V3DLB

Thumbnail aligned right with caption:

Example video

Release:QmXet6QwZ7qdtDn89Kn4fzdm7LugpcmQoSzchdij4V3DLB