WAVEFORMPLAYLIST

Playlist & Chapter Support

Turn WaveformPlayer into a full playlist system with chapter navigation

Demo 1: Podcast with Chapters

Single track with clickable chapter navigation - chapters automatically highlight during playback

Introduction & Welcome
Guest Introduction
Web Audio API Basics
Building Your First Player
Advanced Techniques

Demo 2: Music Playlist

Multiple tracks with continuous playback - click any track to play

Demo 3: Album with Track Chapters

Multiple tracks, each with their own chapter markers

Movement I
Movement II
Intro
Solo Section
Outro

How It Works

WaveformPlaylist uses simple HTML markup. No JavaScript required!

1

Include the Library

Add the playlist script after WaveformPlayer

<script src="waveform-playlist.js"></script>
2

Add HTML Markup

Define your playlist and chapters with data attributes

<div data-waveform-playlist>
  <div data-track data-url="song1.mp3">
    <div data-chapter data-time="0:30">Verse</div>
    <div data-chapter data-time="1:00">Chorus</div>
  </div>
</div>
3

That's It!

The library auto-initializes and handles everything - playback, navigation, UI generation, and state management

Key Features

Multi-Track Playlists

Sequential playback with auto-advance

Chapter Markers

Clickable timestamps for navigation

Continuous Play

Auto-play next track when one ends

Track Artwork

Individual artwork per track

Visual Indicators

Shows current playing track

Zero Config

Works with just HTML attributes

Installation

npm install @arraypress/waveform-playlist
<link rel="stylesheet" href="https://unpkg.com/@arraypress/waveform-playlist@latest/dist/waveform-playlist.css">
<script src="https://unpkg.com/@arraypress/waveform-playlist@latest/dist/waveform-playlist.js"></script>

Download from GitHub and include the files:

<link rel="stylesheet" href="waveform-playlist.css">
<script src="waveform-playlist.js"></script>

Add Playlist Support to Your Site

Just 4KB gzipped. Works with any WaveformPlayer configuration.

WAVEFORMTRACKER

Analytics & Engagement Tracking

Understand how your audience actually engages with audio content

Smart Tracking

Only tracks real listens, not bounces. Knows the difference between a click and actual engagement.

Privacy First

No user tracking, cookies, or personal data. Only anonymous content metrics.

Lightweight

Just 2KB gzipped. Minimal performance impact on your site.

Live Tracking Demo

Play these tracks and watch the analytics update in real-time:

๐Ÿ“Š Real-time Analytics

Total Plays 0
Engaged Plays 0
Avg Listen % 0%
Total Time 0s
Event Log
Waiting for events...

Smart Engagement Metrics

WaveformTracker provides meaningful data about how people listen:

Play Events

Track when and how often tracks are played

Engagement Rate

Distinguish between clicks and actual listens (5+ seconds)

Completion Rate

How much of your content people actually consume

Drop-off Points

Identify where listeners stop engaging

Listen Duration

Total time spent listening to your content

Speed Settings

Track playback speed preferences

Easy Integration

Basic Setup

// Initialize tracker
const tracker = new WaveformTracker();

// That's it! Auto-tracks all players on the page

Google Analytics

new WaveformTracker({
    adapter: 'google',
    category: 'Audio'
});

Custom Backend

new WaveformTracker({
    adapter: 'custom',
    endpoint: '/api/audio-analytics',
    headers: { 'API-Key': 'your-key' }
});

Multiple Analytics

new WaveformTracker({
    adapters: ['google', 'plausible', 'custom'],
    customEndpoint: '/api/analytics'
});

๐Ÿ”’ Privacy By Design

No Cookies

Zero cookies or local storage usage

No User Tracking

Anonymous content metrics only

GDPR Compliant

No personal data collection

Server-Side Ready

Process analytics on your own servers

Installation

npm install @arraypress/waveform-tracker
<script src="https://unpkg.com/@arraypress/waveform-tracker@latest/dist/waveform-tracker.js"></script>

Download from GitHub and include:

<script src="waveform-tracker.js"></script>

Start Tracking Real Engagement

Understand how your audience actually listens. Just 2KB, privacy-focused.

COMING SOON

More Add-ons in Development

We're working on more ways to extend WaveformPlayer

WaveformCaptions

Synchronized captions and transcripts with search

Q4 2025

WaveformShare

Social sharing with timestamp links and clips

Q4 2025

WaveformMarkers

User-added markers for bookmarks and annotations

Q4 2025