action-bar

npm: @playerstack/plugin-action-bar

A dismissible banner overlay that appears mid-playback (or immediately) with optional title, custom HTML, and a CTA button. Lighter-weight cousin of cta-end — the action bar shows DURING the video, not after.

Quickstart

<player-stack
  src="https://example.com/v.mp4"
  data-config='{
    "actionBar": {
      "enabled": true,
      "showAt": 30,
      "title": "🎁 Limited offer",
      "button": {
        "label": "Claim 30% off",
        "url": "https://example.com/offer",
        "utm": "utm_source=video&utm_medium=action-bar"
      }
    }
  }'
>
</player-stack>

Config

config.actionBar:

FieldTypeDescription
enabledbooleanPlugin is a no-op unless true
showAt"start" | number"start" shows on init. Number ≤ 100 = % of duration, > 100 = seconds
titlestring?Heading text
htmlstring?Custom inner HTML (innerHTML — sanitize on your end)
button{ label, url, utm? }?Optional anchor button
position"top" | "bottom"?Default "bottom"

Events

NamePayloadWhen
action-bar:click{ label, url }User clicks the CTA button
action-bar:dismissundefinedUser clicks the × close button

vs cta-end

UsePlugin
Show CTA AT END of videocta-end
Show CTA DURING videoaction-bar
Show CTA at START as a gateemail-gate