---
title: 'Migrating to Flowplayer Native v3.0'
url: 'http://docs.flowplayer.com/player/migration/release3'
markdown: 'http://docs.flowplayer.com/player/migration/release3.md'
date: '2026-11-16'
description: 'v3.0 Migration Guide Migrating Flowplayer Native from version 2.x to 3.0 should be pretty straightforward, but in a few places v3 is not backwards compatible: release URLs, DOM handling, playlist initialization, the plugin signature, cuepoints, flowplayer.util, multiplay and the subtitles plugins. …'
taxonomy:
  category:
    - documentation
  tag:
    - player
    - 'Flowplayer Native'
    - migration
    - switch
    - development
    - v3
    - v2
    - release
    - releases
    - playlist
    - plugins
  audience:
    - developer
---

# v3.0 Migration Guide

Migrating Flowplayer Native from version 2.x to 3.0 should be pretty straightforward, but in a few places v3 is not backwards compatible: release URLs, DOM handling, playlist initialization, the plugin signature, cuepoints, `flowplayer.util`, multiplay and the subtitles plugins. Learn more about those changes below.

#### Table of contents

- [ Namespaced releases ](#namespaced-releases)
- [ Internal DOM Handling ](#internal-dom-handling)
- [ Playlist initialization ](#playlist-initialization)
- [ New plugin/extension signature ](#new-plugin-extension-signature)
- [ Cuepoints ](#cuepoints)
- [ flowplayer.util removal ](#flowplayer-util-removal)
- [ Multiplay functionality ](#multiplay-functionality)
- [ Subtitles plugins ](#subtitles-plugins)

## Namespaced releases

Instead of the old flat release channel structure (i.e. `cdn.flowplayer.com/releases/native/stable`) we now prefix all release channels with the major version.

The new URLs have the following structure: `[CDN_BASE]/releases/native/[MAJOR_VERSION]/[RELEASE_CHANNEL]`.

For instance the stable release channel for 3.0 uses URLs like `https://cdn.flowplayer.com/releases/native/3/stable/flowplayer.min.js`.

## Internal DOM Handling

In v2.x we used an internal tool called MiniQuery to offer an API for DOM handling. It enhanced all flowplayer-owned DOM elements with methods like `toggleClass()`, `css()` etc. We never documented these but there is an off chance you might have been using those methods anyway.

We do not decorate the elements anymore so if you were using any custom methods on the flowplayer-owned elements you need to convert to standard methods.

### Old way:

```js
const player = flowplayer("#player", opts)

player.root.toggleClass("my-custom-class")
```

### New way:

```js
const player = flowplayer("#player", opts)

player.root.classList.toggle("my-custom-class")
```

## Playlist initialization

The playlist plugin is now a `Loader` plugin. It means that it will handle sources that are defined with `type: "flowplayer/playlist"`.

We have removed the `flowplayer.playlist()` initialization method in favor of the new way of initializing the player with a playlist.

Note the configuration of the playlist behavior is now set in the `playlist` namespace and not in the root configuration, hence it will look like in the ***New playlist syntax*** example

Look at the examples below on what you need to change:

### Old playlist syntax

```js
flowplayer.playlist("#player", {
    playlist: [source1, source2],
    advance: true
})
```

### New playlist syntax

```js
flowplayer("#player", {
    src: {
        type: "flowplayer/playlist",
        items: [source1, source2]
    },
    playlist: {
        advance: true,
        loop: true,
        skip_controls: false,
        delay: 0
    }
})
```

## New plugin/extension signature

Instead of using flat functions as plugins you now need to pass a class whose instances implement the following signature:

```js
{
    init: (config: Config, container: HTMLDivElement, player: Player) => void
}
```

### Old syntax

```js
flowplayer(function(config, root, player) {
    player.on(flowplayer.events.PLAYING, () => {
        console.log("playing")
    })
})
```

### New syntax

```js

class MyPlugin {
    init(config, root, player) {
        player.on(flowplayer.events.PLAYING, () => {
            console.log("playing")
        })
    }
}

flowplayer(MyPlugin)
```

## Cuepoints

The [cuepoints plugin](http://docs.flowplayer.com/plugins/cuepoints) had several changes:

- `draw_cuepoints` was deprecated as the visible cuepoint in the timeline did not really serve a purpose. We recommend to use **chapters** instead if you need to interact with the timeline.
- the `start` and `end` properties are now called `startTime` and `endTime`.

### Compatibility layer

Since version `v3.4.3` there is a compatibility layer you can use to migrate to v3 and keep using your 2.x style plugins. This compatibility layer will be removed in v4.

To use the compatibility layer you need to include `flowplayer.min.js` from the `compat/` directory/path.

Example:

```html
<!-- Note the different path -->
<script src="//cdn.flowplayer.com/releases/native/3/stable/compat/flowplayer.min.js"></script>
<script>
flowplayer(function(config, root, player) {
    console.log("Hello from 2.x style plugin")
})
</script>
```

## `flowplayer.util` removal

With access to modern ECMAScript and utility functions like `Object.assign` there is no need to write our own utility functions anymore. This is also why we removed the `flowplayer.util` namespace completely.

If you are using anything from `flowplayer.util` you need to convert those parts of your code to use browser built-in features.

### Old syntax

```js
flowplayer.util.extend(someObject, { newProperty: "value" })
```

### New syntax

```js
Object.assign(someObject, { newProperty: "value" })
```

## Multiplay functionality

Flowplayer 2.x by default didn't allow multiple video players on same page to play simultaneously. You had the chance to override this behavior by configuring `multiplay: true`. In 3.0 this default was reversed. Multiplay is now allowed by default and can be disabled by `multiplay: false`.

### Preserving old behavior

```js
flowplayer("#container", {
    src: "...",
    multiplay: false
})
```

## Subtitles plugins

Flowplayer 2.x had two subtitles plugins:

- `subtitles`
- `subtitles-html`

In 3.0 we replaced the `subtitles` plugin with the `subtitles-html` plugin.

If you were using the `subtitles-html` plugin you now need to update your references to use `subtitles` instead. This also might affect some customizations you might have done to the appearance.

 [ Migration](http://docs.flowplayer.com/player/migration) [ From Flowplayer 7 ](http://docs.flowplayer.com/player/migration/fp7tonative)

---

## Navigation

- Next: [Migrating from Flowplayer 7 to Flowplayer Native](http://docs.flowplayer.com/player/migration/fp7tonative.md)
