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}}

Starting at a particular moment:

{{HLSVideo|cid=QmXet6QwZ7qdtDn89Kn4fzdm7LugpcmQoSzchdij4V3DLB|t=14:32}}

Parameters

  • cid - Required. The IPFS CID containing the HLS directory (must have master.m3u8). Accepts positional (1) or named (cid=) form.
  • t - Optional. Where to start playback. Accepts 14:32, 1:02:03, or a raw number of seconds. The video loads paused on that frame rather than autoplaying. A value past the end of the video lands on the last frame; an unparseable value starts at the beginning.
  • 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.

Citing a moment

For citing the specific second at which a fact is asserted on video, prefer Template:Src, which records the citation as queryable structured data as well as rendering a link. Use t= here when you want the player itself embedded at that moment.

Examples

Basic:

Release:QmXet6QwZ7qdtDn89Kn4fzdm7LugpcmQoSzchdij4V3DLB

Thumbnail aligned right with caption:

Example video

Release:QmXet6QwZ7qdtDn89Kn4fzdm7LugpcmQoSzchdij4V3DLB