# FlexPlyr
> FlexPlyr is a JavaScript video player library by Pardn Chiu (邱敬幃): one API drives HTML5 video and audio, the YouTube player, and Vimeo, with themed panels.
Every documentation page in navigation order; each section starts with its source URL.
---
Source: https://flexplyr.pardn.io/index.md
> [!NOTE]
> This README was generated by [SKILL](https://github.com/agenvoy/skill-readme-generate), get the ZH version from [here](https://github.com/pardnchiu/FlexPlyr/blob/main/doc/README.zh.md).
> [!WARNING]
> **Archived on 2026-10-30.** FlexPlyr is no longer maintained. The final release is `v2.2.9`; `npm i @pardnchiu/flexplyr` and the jsDelivr build remain available, but no new features, bug fixes, or security updates will be published, and issues and pull requests are no longer accepted.
***
ONE PLAYER API FOR HTML5, YOUTUBE AND VIMEO
***
> A JavaScript player library with unified HTML5/YouTube/Vimeo sources, themed control panels, and lifecycle events
## Table of Contents
- [Features](#features)
- [Architecture](#architecture)
- [License](#license)
- [Author](#author)
## Features
> `npm i @pardnchiu/flexplyr` · [Documentation](https://github.com/pardnchiu/FlexPlyr/blob/main/doc/doc.md)
- **Four sources, one interface** — A single `FPlyr` config object drives HTML5 video, audio, YouTube, and Vimeo, so play, pause, volume, and speed behave identically for the caller.
- **Four composable panel themes** — Minimal, Classic, Retro, and Simple panels ship built in, and eight control items can be picked and ordered freely.
- **One script tag to go live** — On load it injects the stylesheet, Material Symbols icons, and the YouTube/Vimeo SDKs, so no build step or extra includes are needed.
- **Full lifecycle events** — Five callbacks (`ready`, `playing`, `pause`, `end`, `destroyed`) make it easy to hook in external logic and clean up resources.
- **Synced mobile fullscreen** — A hidden dedicated fullscreen player takes over on mobile and syncs progress, volume, and speed on entry and exit.
## Architecture
> [Full Architecture](https://github.com/pardnchiu/FlexPlyr/blob/main/doc/architecture.md)
```mermaid
graph TB
A[FPlyr Config] --> B[FPlyr Core]
H[Head Assets Injected on Load] -.-> B
B --> C[Source Dispatch]
C --> D[HTML5 video / audio]
C --> E[YouTube IFrame API]
C --> F[Vimeo Player API]
B --> G[playerPanel Controls]
D & E & F --> I[State Handlers]
I --> G
I --> J[when Lifecycle Callbacks]
```
## License
This project is licensed under the [MIT LICENSE](https://github.com/pardnchiu/FlexPlyr/blob/main/LICENSE).
## Author
Just [open an issue](https://github.com/pardnchiu/FlexPlyr/issues/new) to share an idea.
***
©️ 2024 [邱敬幃 Pardn Chiu](https://www.linkedin.com/in/pardnchiu)
---
Source: https://flexplyr.pardn.io/getting-started.md
# Getting Started
This page covers loading FlexPlyr, mounting your first player, and calling its methods once it is ready.
## Prerequisites
- A modern browser that supports ES2022 private fields (`#field`) and CSS `:has()`
- Network access to `cdn.jsdelivr.net`, `fonts.googleapis.com`, `www.youtube.com`, and `player.vimeo.com` (see [Runtime Dependencies](/runtime-dependencies))
- Browser-only: the module touches `document` and `navigator` as soon as it loads
## Installation
### jsDelivr CDN
```html
```
The global `FPlyr` is available once the script loads.
### npm
```bash
npm i @pardnchiu/flexplyr
```
```javascript
import { FPlyr } from "@pardnchiu/flexplyr/dist/FlexPlyr.esm.js";
```
`main` in `package.json` points to `dist/FlexPlyr.js` (a non-module build that sets `window.FPlyr`); import `dist/FlexPlyr.esm.js` for the named export.
## Your First Player
Pass the `id` of an existing element and one media source. The player turns that element into the `.FPlyr` container, which fills its parent, so the parent needs a height.
```demo
```
## Call Methods After ready
`when.ready` fires **before** the player sets its internal source flags (`src/js/model/player.js:395`), so calling `isPaused()`, `isMuted()`, or `play()` synchronously inside `ready` returns `undefined` or does nothing. Defer the call to the next task (for example with `setTimeout`) to get correct results; see [Lifecycle Events](/lifecycle-events).
## Next Steps
- [Media Sources](/media-sources): switch to YouTube, Vimeo, or audio
- [Panel Themes](/panel-themes) and [Panel Controls](/panel-controls): change the look and the buttons
- [Configuration](/configuration): every constructor option
---
Source: https://flexplyr.pardn.io/architecture.md
# Architecture
This page shows how FlexPlyr is layered and which way each layer depends on the next, in a single overview diagram.
## System Overview
```mermaid
graph TB
subgraph Load Phase
MAIN["src/js/*.js"] --> HEAD[Inject head Assets]
end
subgraph Runtime Phase
CFG[FPlyr Config] --> CORE[FPlyr Core]
CORE --> SRC{Source Dispatch}
SRC --> H5[HTML5 video / audio]
SRC --> YT[YT.Player]
SRC --> VM[Vimeo.Player]
CORE --> PANEL[playerPanel]
H5 & YT & VM --> STATE[State Handlers]
STATE --> PANEL
STATE --> WHEN[when Callbacks]
end
HEAD -.SDK.-> YT
HEAD -.SDK.-> VM
```
## Layers
| Layer | File | Responsibility |
|-------|------|----------------|
| Bootstrap | `src/js/*.js` | Declares shared constants, detects `isMobile`/`isIOS`, and injects the stylesheet, icon font, and YouTube and Vimeo SDKs into `` |
| Core | `src/js/model/player.js` | The `FPlyr` class: merges config, builds the container, initializes the source, and exposes one method set for all four sources |
| Control panel | `src/js/model/playerPanel.js` | Builds controls from `panelItem` and exposes update hooks such as `setCurrent`, `setVolume`, and `show`/`hide` |
| Helpers | `src/js/function/*.js` | `createElement` (builds elements from `tag#id.class`), `UUID` (YouTube container IDs), `getTime` (time formatting) |
The bootstrap file is literally named `*.js`, and the `terser` build globs (`src/js/*.js src/js/**/*.js`) concatenate it with every other source file into `dist/`. The `FPlyr` and `playerPanel` classes live in `src/js/model`. `src/js/model/videoPlayer.js` is bundled into `dist/`, but nothing references it.
## Cross-Cutting Principles
- **Source differences live only in the core**: every operation (play, seek, volume, speed) branches on `#isVideo`/`#isAudio`/`#isYoutube`/`#isVimeo`, so the panel and `when` callbacks never need to know the source type.
- **State is event-driven**: panel icons and progress update only from source events (`playing`, `pause`, `ended`) and a 100 ms poll, never directly from button clicks.
- **Mobile fullscreen uses a second player**: see [Mobile Fullscreen](/mobile-fullscreen).
## Further Reading
Per-module diagrams, sequence diagrams, and the state machine live in [doc/architecture.md](https://github.com/pardnchiu/FlexPlyr/blob/main/doc/architecture.md).
---
Source: https://flexplyr.pardn.io/media-sources.md
# Media Sources
This page covers the four media sources FlexPlyr supports, which one wins when several are set, and why YouTube and Vimeo players must wait for their SDKs.
## The Four Sources
| Config field | Value | Underlying player | Notes |
|--------------|-------|-------------------|-------|
| `video` | Video URL | `` | Clicking the picture toggles playback on desktop; mobile also gets a fullscreen player |
| `audio` | Audio URL | `` (hidden) | Renders only the control panel; the `full` button is skipped |
| `youtube` | YouTube video ID | `YT.Player` | Embedded with `controls: 0`, `modestbranding: 1`, and similar params so the FlexPlyr panel replaces the native controls |
| `vimeo` | Vimeo video ID | `Vimeo.Player` | Embedded as an iframe with `background=1&controls=0` |
Values go through `String()` and `trim()`; an empty string counts as unset.
Other web players cover overlapping source sets. Video.js describes itself as an open source media player framework for HTML and React with HLS and DASH streaming; Plyr is a simple HTML5, YouTube and Vimeo player that its maintainers now mark as deprecated in favour of Video.js 10; MediaElement.js unifies HTML5 video and audio with YouTube, Vimeo, SoundCloud, Facebook, HLS, and DASH; vLitejs skins HTML5, YouTube, Vimeo, and Dailymotion players with a minimalist theme. FlexPlyr stays with four sources (`video`, `audio`, `youtube`, `vimeo`) behind one `FPlyr` config, ships one script that injects its own stylesheet and both SDKs, switches between five built-in panel themes through `option.panelType`, and, for `video` and `youtube` sources, keeps a hidden second player in sync for mobile fullscreen (see [Mobile Fullscreen](/mobile-fullscreen)).
## Priority Order
When several sources are set, the first non-empty value in the order `video` → `youtube` → `vimeo` → `audio` wins (`src/js/model/player.js:100`); the other fields are never written to the instance.
```demo
```
## Audio
```demo
```
## YouTube and Vimeo: Wait for the SDK
FlexPlyr injects `iframe_api` and `player.js` as `async` scripts on load, but the constructor creates `YT.Player`/`Vimeo.Player` **immediately** (`src/js/model/player.js:824`, `:864`). Constructing a player before the SDK finishes loading throws `ReferenceError: YT is not defined` or `Vimeo is not defined`, and the player never retries.
Script-inserted `async` scripts delay the window `load` event, so constructing the player after `load` works:
```demo
```
```demo
```
If `load` has already fired (for example, a SPA creating a player later), the SDKs are present and you can construct directly.
## Related Pages
- [Runtime Dependencies](/runtime-dependencies): which SDKs get injected
- [Lifecycle Events](/lifecycle-events): the events each source maps to
---
Source: https://flexplyr.pardn.io/lifecycle-events.md
# Lifecycle Events
This page covers when each of the five `when` callbacks fires, which underlying event triggers it per source, and the timing limit inside `ready`.
## Callbacks at a Glance
| Callback | HTML5 video/audio | YouTube | Vimeo | What FlexPlyr also does |
|----------|-------------------|---------|-------|-------------------------|
| `ready` | `loadedmetadata` | `onReady` | `ready()` resolves | Sets duration, resets progress, applies volume and mute |
| `playing` | `playing` | state `1` | `play` | Starts the 100 ms progress poll; hides the panel after 1 s |
| `pause` | `pause` | state `2` | `pause` | Stops the poll and shows the panel |
| `end` | `ended` | state `0` | `ended` | Stops the poll, resets the panel, seeks back to 0 |
| `destroyed` | After `destroy()` removes the DOM | Same | Same | — |
The legacy `event` object still works as an alias of `when` (see [Deprecations](/deprecations)).
## Example
Click play, then pause, then `destroy()`; the log below lists each callback as it fires:
```demo
destroy()
```
## ready Runs Before Internal State
`ready` is the first line of `#stateReady()` (`src/js/model/player.js:397`), before the `#isVideo`/`#isYoutube` source flags are set (`:406`). Every public method branches on those flags, so synchronous calls inside `ready` miss:
```demo
```
To act on the player at readiness, wrap the call in `setTimeout`.
## Related Pages
- [Instance API](/instance-api): what `destroy()` releases and in which order
- [Media Sources](/media-sources): SDK timing for YouTube and Vimeo
---
Source: https://flexplyr.pardn.io/mobile-fullscreen.md
# Mobile Fullscreen
This page covers how the `full` button behaves on desktop versus mobile, and how the hidden mobile fullscreen player stays in sync.
## Device Detection
FlexPlyr detects the device from the User-Agent on load (`src/js/*.js`):
| Flag | Condition |
|------|-----------|
| `isMobile` | UA contains `iphone`, `ipad`, `ipod`, or `android` |
| `isIOS` | UA contains `iphone`, `ipad`, or `ipod` |
## Desktop
The `full` button calls `requestFullscreen` on the `.FPlyr` container (including the `webkit`/`moz`/`ms` prefixed versions), calls `exitFullscreen` on the next click, and updates `player.stateFull`.
## Mobile
Inline video on mobile is bound by `playsinline`, so a custom panel cannot follow it into fullscreen. FlexPlyr therefore creates a hidden fullscreen player (class `PDFullPlayer`, moved off-screen by CSS):
| Source | Fullscreen player | How it enters |
|--------|-------------------|---------------|
| `video` | A second `` without `playsinline` | `full` → pause the main player → `play(true)` plays the fullscreen player, which the OS shows natively fullscreen |
| `youtube` | A second `YT.Player` with `playsinline: 0` | Same; calling `play(true)` before that player's `onReady` shows `alert("not Ready")` |
| `vimeo` | None; the main player is reused | `play(true)` calls `requestFullscreen()` and then plays |
| `audio` | None | The `full` button is not rendered |
### Syncing In and Out
| When | What happens |
|------|--------------|
| The fullscreen player starts (video `playing` / YouTube state `3`) | Pauses the main player, copies its time, volume, and speed to the fullscreen player, then plays |
| The fullscreen player pauses (leaving fullscreen) | Copies time, volume, and speed back to the main player and updates the panel progress |
| iOS `webkitpresentationmodechanged` / otherwise `fullscreenchange` | Updates `player.stateFull` |
On mobile, tapping the video picture does not toggle playback; only the panel buttons do.
## Example
Desktop browsers create no fullscreen player; open this page on iOS or Android and the count is 1:
```demo
```
## Related Pages
- [Panel Controls](/panel-controls): the `full` button
- [Instance API](/instance-api): `play(isFull)` and `stateFull`
---
Source: https://flexplyr.pardn.io/panel-themes.md
# Panel Themes
This page covers the five panel themes selected by `option.panelType` and how they are applied.
## How It Works
`option.panelType` is written to the container's `data-type` attribute, and the stylesheet applies each look through `.FPlyr[data-type="..."]` selectors (`src/scss/panelType/`). Any value not listed behaves like the default theme.
| Value | Look | Extra behavior |
|-------|------|----------------|
| `""` (default) | Translucent bar floating at the bottom of the picture | — |
| `minimal` | Compact centered bar with rounded top corners | Width is fixed from the item count; `time`/`timeMini` are not rendered |
| `classic` | Bottom gradient overlay with a rounded pill bar | — |
| `retro` | Grey bevelled borders with a monospace font | — |
| `simple` | Flat light-grey bar with a monospace font | — |
Every theme hides the panel 1 second into playback and shows it again on mouse movement or pause.
## Example
One player per theme (no `id`, so each `player.body` is inserted manually):
```demo
```
## Where the Styles Come From
Theme styles live in `FlexPlyr.css`, which the script loads automatically from jsDelivr `@latest` (see [Runtime Dependencies](/runtime-dependencies)). To customize a theme, override `.FPlyr[data-type="..."] > div.panel` in your own stylesheet.
## Related Pages
- [Panel Controls](/panel-controls): the buttons each theme can hold
---
Source: https://flexplyr.pardn.io/panel-controls.md
# Panel Controls
This page covers the eight controls available in `option.panelItem`, the order they render in, and the `showThumb` drag-thumb option.
## Controls at a Glance
The default is `["play", "progress", "time", "volumeMini", "rate", "full"]`.
| Value | Control | Behavior |
|-------|---------|----------|
| `play` | Play/pause button | Toggles playback; the icon follows `playing`/`pause` events |
| `progress` | Progress bar | Pauses and updates the time while dragging, seeks 500 ms after dragging stops, then resumes 500 ms later |
| `time` | Current time / duration | e.g. `0:12/0:30`; not rendered in `minimal` |
| `timeMini` | Current time | e.g. `0:12`; not rendered in `minimal` |
| `volume` | Mute button + always-visible volume slider | The button toggles mute; dragging to 0 counts as muted, and unmuting from 0 restores 50 |
| `volumeMini` | Collapsible volume button | Click to expand the slider; it collapses 1 s after the pointer leaves; the button itself does not mute |
| `rate` | Speed button | Cycles `1 → 1.25 → 1.5 → 2 → 0.5 → 1` |
| `full` | Fullscreen button | See [Mobile Fullscreen](/mobile-fullscreen); not rendered for audio sources |
The time format follows the total duration: `0:ss` under a minute, `mm:ss` under an hour, `hh:mm:ss` otherwise.
## Order and Duplicates
Controls are appended in array order, so the array order is the on-screen order. Listing a value twice renders two controls, but only the last one gets event bindings, so avoid duplicates.
## showThumb
`option.showThumb` is written to the container's `data-thumb`; when `false`, the stylesheet hides the drag thumbs on the progress and volume sliders and keeps only the filled bar.
## Example
```demo
```
## Version Differences
Since `2.1.0`, `time` shows the full format (`0:00/0:30`), and the old short format was renamed `timeMini`.
## Related Pages
- [Panel Themes](/panel-themes)
- [Configuration](/configuration)
---
Source: https://flexplyr.pardn.io/configuration.md
# Configuration
This page lists every field of `new FPlyr(config)`, the defaults, and how the initial `volume` and `mute` values are applied.
## config
| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `id` | `string` | No | ID of an existing element that becomes the player container; if omitted or not found, a new `div.FPlyr` is created and `player.body` must be inserted manually |
| `video` | `string` | One of | Video URL |
| `youtube` | `string` | One of | YouTube video ID |
| `vimeo` | `string` | One of | Vimeo video ID |
| `audio` | `string` | One of | Audio URL |
| `option` | `object` | No | Panel and playback options, see below |
| `when` | `object` | No | Lifecycle callbacks, see [Lifecycle Events](/lifecycle-events) |
For the priority order when several sources are set, see [Media Sources](/media-sources).
## option
| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `panelType` | `string` | `""` | Panel theme, see [Panel Themes](/panel-themes) |
| `panelItem` | `string[]` | `["play", "progress", "time", "volumeMini", "rate", "full"]` | Controls, see [Panel Controls](/panel-controls) |
| `showThumb` | `boolean` | `true` | Show slider drag thumbs |
| `volume` | `number` | `100` | Initial volume (0–100), see [How volume and mute Are Applied](#how-volume-and-mute-are-applied) |
| `mute` | `boolean` | `false` | Initial mute, see [How volume and mute Are Applied](#how-volume-and-mute-are-applied) |
## Without an id
Without `id`, the player stays off the page until you insert `player.body`:
```demo
```
## Invalid Config
If `config` is not an object, the constructor logs `config: 不存在。` with `console.log` and returns without throwing; the instance has no `body`:
```demo
```
## How volume and mute Are Applied
- **`option.volume`**: the constructor writes it when the top-level `volume` is passed alongside it (`src/js/model/player.js:61`); with `option` alone the volume is `100`.
- **`option.mute`**: written the same way from the top-level `mute` (`:65`). At readiness the player applies the volume (`:424`), and any volume above 0 sets the player unmuted (`:243`), so the player starts unmuted; to silence it, the viewer presses the mute button of the `volume` control ([Panel Controls](/panel-controls)) or drag the volume to 0.
```demo
```
## Related Pages
- [Instance API](/instance-api)
- [Deprecations](/deprecations): the legacy top-level fields
---
Source: https://flexplyr.pardn.io/instance-api.md
# Instance API
This page lists the public methods and properties of an `FPlyr` instance, plus the globals and ESM exports.
## Methods
| Method | Returns | Description |
|--------|---------|-------------|
| `play(isFull?)` | `void` | Plays and switches the play button to the pause icon; with `isFull` set to `true` on mobile, plays through the fullscreen player |
| `pause(isFull?)` | `void` | Pauses and switches the button back to the play icon |
| `isPaused(isFull?)` | `boolean` | Whether playback is paused; for YouTube, whether the player state is not `1` |
| `isMuted(isFull?)` | `boolean` | Whether audio is muted |
| `destroy()` | `void` | Releases the player in the order below |
These methods branch on source flags that are set only at readiness, so calling them before `when.ready` fires, or synchronously inside `ready`, returns `undefined` and does not reach the media (see [Lifecycle Events](/lifecycle-events)).
### What destroy() Releases, in Order
1. Removes the container's `mousemove`/`mouseleave` handlers
2. Stops the progress poll
3. Vimeo/YouTube call the SDK's `destroy()` (YouTube also destroys its fullscreen player); HTML5 media is paused and its `src` cleared
4. Removes the container from the DOM
5. Calls `when.destroyed` if it is a function
## Properties
| Property | Type | Description |
|----------|------|-------------|
| `body` | DOM element | Player container (`.FPlyr`) |
| `option` | `object` | Merged `option`; after readiness, `volume` tracks volume changes |
| `when` | `object` | Lifecycle callbacks (`when` or the legacy `event`) |
| `panel` | `playerPanel` | Control panel instance exposing elements such as `buttonPlay` and `inputProgress` |
| `stateFull` | `boolean` | Whether the player is in fullscreen |
| `video`/`youtube`/`vimeo`/`audio` | `string` | The source actually used; the others are `undefined` |
## Example
```demo
destroy()
```
## Globals and Exports
| Name | Source | Description |
|------|--------|-------------|
| `window.FPlyr` | `dist/FlexPlyr.js` | Main class |
| `window.PDPlayer` | `dist/FlexPlyr.js` | Legacy alias of `FPlyr`, scheduled for removal in `3.x` |
| `FPlyr` | `dist/FlexPlyr.esm.js` | ESM named export |
| `player` | `dist/FlexPlyr.esm.js` | Legacy alias of `FPlyr`, scheduled for removal in `3.x` |
```javascript
import { FPlyr } from "@pardnchiu/flexplyr/dist/FlexPlyr.esm.js";
```
## Related Pages
- [Configuration](/configuration)
- [Deprecations](/deprecations)
---
Source: https://flexplyr.pardn.io/runtime-dependencies.md
# Runtime Dependencies
This page lists the external assets FlexPlyr injects into `` on load and what they mean for versioning, CSP, and SSR.
## Injected Assets
As soon as the script runs, it inserts the following `preconnect`, `preload`, and loading tags into `` (`src/js/*.js`), regardless of how many players you create or which sources they use:
| Asset | URL | Purpose |
|-------|-----|---------|
| Panel styles | `https://cdn.jsdelivr.net/npm/@pardnchiu/flexplyr@latest/dist/FlexPlyr.css` | Container, panel, and theme styles |
| Icon font | `https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined...` | Panel button icons (`play_arrow`, `volume_up`, and other font ligatures) |
| YouTube SDK | `https://www.youtube.com/iframe_api` (`async`) | `YT.Player` |
| Vimeo SDK | `https://player.vimeo.com/api/player.js` (`async`) | `Vimeo.Player` |
```demo
```
## Implications
| Area | Details |
|------|---------|
| Style version | Styles always come from `@latest`, so even with the script pinned to `@2.2.9`, styles change when a new version ships |
| HTML5-only pages | The YouTube and Vimeo SDKs still download |
| CSP | `script-src` must allow `cdn.jsdelivr.net` (when loading from the CDN), `www.youtube.com`, and `player.vimeo.com`; `style-src` must allow `cdn.jsdelivr.net` and `fonts.googleapis.com`; `font-src` must allow `fonts.gstatic.com`; `frame-src` must allow `www.youtube.com` and `player.vimeo.com` |
| SSR | The module touches `document.head` and `navigator.userAgent` on load, so importing it in Node.js fails; load it dynamically on the client only |
| SDK timing | The SDKs load `async`, so YouTube/Vimeo players must wait for them; see [Media Sources](/media-sources) |
## Related Pages
- [Getting Started](/getting-started)
- [Architecture](/architecture)
---
Source: https://flexplyr.pardn.io/deprecations.md
# Deprecations
This page lists the options and globals scheduled for removal in `3.x`, their replacements, and the legacy package names that are already gone.
## Options Scheduled for Removal in 3.x
Since `2.1.0`, these top-level fields are replaced by `option` and `when`; they still work today:
| Legacy | Replacement | Notes |
|--------|-------------|-------|
| `type` | `option.panelType` | `option.panelType` wins |
| `panel` | `option.panelItem` | `option.panelItem` wins |
| `volume` | `option.volume` | `option.volume` is written when `volume` is passed with it, see [Configuration](/configuration#how-volume-and-mute-are-applied) |
| `mute` | `option.mute` | Written the same way; the player starts unmuted when the volume is above 0 |
| `event` | `when` | `when` wins |
## Globals Scheduled for Removal in 3.x
| Legacy name | Replacement | Where |
|-------------|-------------|-------|
| `PDPlayer` | `FPlyr` | Global from `dist/FlexPlyr.js` |
| `player` | `FPlyr` | Named export of `dist/FlexPlyr.esm.js` |
## Example
Legacy fields are still mapped onto the new ones:
```demo
```
## Removed
| Item | Removed in | Replacement |
|------|------------|-------------|
| npm package `pdplayerkit` | Removed in 2.2.6 | `@pardnchiu/flexplyr` |
| `dist/PDPlayerKit.js` | Removed in 2.2.6 | `dist/FlexPlyr.js` |
| `dist/PDPlayerKit.module.js` | Removed in 2.2.6 | `dist/FlexPlyr.esm.js` |
## Related Pages
- [Instance API](/instance-api)
- [Release Notes](/released/)