Sharing a playlist

You can share a Flowplayer OVP playlist in four ways. Each one is a tab in the Share playlist dialog:

    • Tab
    • What you get
    • Use it when
    • IFrame embed
    • An iframe embed code
    • You want the simplest embed, isolated from the rest of the page
    • Hosted page
    • A link to a page hosted by Flowplayer
    • You want to send the playlist by email or messenger, or link to it
    • Flowplayer Spins
    • An ESM embed code for a vertical short-form video feed
    • You want a TikTok© or Reels-style swipe feed

The JavaScript embed, the iframe embed and the hosted page play the playlist in a player configuration. If none of your player configurations fits, create a new player configuration first.

To share a playlist:

  1. Go to the playlists view and select the playlist you want to share.
  2. Click the Share playlist button.
  3. Select a tab: JavaScript embed, IFrame embed, Hosted page or Flowplayer Spins.
  4. Choose a player configuration and the playlist options. The Preview updates as you change them.
  5. Copy the embed code, or the link for a hosted page.

The Share playlist dialog

Playlist options

The JavaScript embed, IFrame embed and Hosted page tabs share these options:

    • Option
    • Description
    • Playlist position
    • Where the playlist menu (the list of videos with thumbnails) is shown: Right or Left of the player, or Hidden. The JavaScript embed also offers Separate embed codes, see below.
    • Autoplay next video by default
    • Plays the next video automatically when the current one ends. Viewers can turn this off with the Autoplay toggle in the playlist menu.
    • Time between videos
    • Seconds to wait before the next video starts. Only available with Autoplay next video by default.
    • Loop
    • Starts over with the first video after the last one ends.
    • Shuffle
    • Plays the videos in random order.

Each tab adds its own options:

  • JavaScript embed: Hide playlist navigation controls in player removes the previous and next buttons from the player's control bar. Viewers use these buttons to skip videos, so keep them when the playlist position is Hidden and there is no playlist menu.
  • IFrame embed: choose a Responsive iframe that fills its container, or a fixed width and height.

Embed a playlist using JavaScript

The JavaScript embed is an ESM embed. It loads Flowplayer Native with the playlist plugin, renders the playlist menu on your page and gives you direct access to the Player API.

With the playlist position Right the embed code looks like this:

<div id="fp-player-container-c5ad8e31-7bbe-441a-8c29-eaeca03ac6e1" class="fp-playlist-layout right">
  <script type="module">
    import flowplayer from "https://embed.flowplayer.com/c5ad8e31-7bbe-441a-8c29-eaeca03ac6e1/ee85f6a7-acae-4b8b-baa6-9e9a5c05389b.js";
    flowplayer("#player-c5ad8e31-7bbe-441a-8c29-eaeca03ac6e1", {
      "playlist": {
        "controls": "#fp-player-container-c5ad8e31-7bbe-441a-8c29-eaeca03ac6e1",
        "advance": false,
        "shuffle": false,
        "skip_controls": true
      }
    });
  </script>
  <div id="player-c5ad8e31-7bbe-441a-8c29-eaeca03ac6e1"></div>
  <div id="fp-playlist-container-c5ad8e31-7bbe-441a-8c29-eaeca03ac6e1"></div>
</div>

The import URL is built like the one for a video: the first segment after embed.flowplayer.com/ is the player configuration ID, the last segment is the playlist ID. The outer div with the class fp-playlist-layout places the player and the playlist menu side by side. The class right or left sets the side.

The options you choose in the dialog become playlist plugin settings in the playlist object:

    • Dialog option
    • Playlist setting
    • Playlist position Right, Left or Separate embed codes
    • controls: CSS selector of the element the playlist menu is rendered into
    • Playlist position Hidden
    • no controls, so no menu is rendered
    • Autoplay next video by default off
    • advance: false
    • Autoplay next video by default on
    • delay: the Time between videos, and loop
    • Shuffle
    • shuffle
    • Hide playlist navigation controls in player
    • skip_controls: false

You can change these settings in the embed code, or add any other configuration option.

Separate embed codes

With the playlist position Separate embed codes, the dialog shows two embed codes: one for the Player and one for the Playlist menu. Place them anywhere on the same page, for example the player in the main column and the playlist in a sidebar.

<!-- Player -->
<script type="module">
  import flowplayer from "https://embed.flowplayer.com/c5ad8e31-7bbe-441a-8c29-eaeca03ac6e1/ee85f6a7-acae-4b8b-baa6-9e9a5c05389b.js";
  flowplayer("#player-c5ad8e31-7bbe-441a-8c29-eaeca03ac6e1", {
    "playlist": {
      "controls": "#fp-playlist-container-c5ad8e31-7bbe-441a-8c29-eaeca03ac6e1",
      "advance": false,
      "shuffle": false,
      "skip_controls": true
    }
  });
</script>
<div id="player-c5ad8e31-7bbe-441a-8c29-eaeca03ac6e1"></div>

<!-- Playlist -->
<div id="fp-playlist-container-c5ad8e31-7bbe-441a-8c29-eaeca03ac6e1"></div>

With the playlist position Hidden, you get the player embed code only. Viewers move through the playlist with the previous and next buttons in the control bar, or with Autoplay next video by default.

Embed a playlist using iframe

An iframe embed is the easiest way to embed a playlist. The player and the playlist menu run in their own "window", which prevents conflicts with other code on your page. The iframe embed code looks like this:

<iframe webkitAllowFullScreen mozallowfullscreen allowfullscreen
        src="https://ljsp.lwcdn.com/api/video/embed.jsp?id=ee85f6a7-acae-4b8b-baa6-9e9a5c05389b&pi=c5ad8e31-7bbe-441a-8c29-eaeca03ac6e1&display=right&playlistAutoplay=false"
        byline="0" portrait="0" frameborder="0" allow="autoplay"
        style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"></iframe>

A Responsive iframe fills its parent element, so place it in a container with position: relative and the size you want. With a fixed size, the code has width and height attributes instead of the style attribute.

The playlist options are passed as URL parameters. The iframe embed link also accepts the parameters to override the player configuration.

An iframe embed limits how much you can interact with the player. If you need the Player API or more control over the layout, use the JavaScript embed.

Share a playlist as a hosted page

The Hosted page tab creates a link to a page hosted by Flowplayer that shows the player and the playlist menu. Send the link by email or messenger, or link to it from your website or social media.

The link is shown under Preview link. Click Open preview to open the page in a new browser tab. The link uses the same URL parameters as the iframe embed.

If you use a player configuration with host restrictions, you must allow ljsp.lwcdn.com in the host configuration so that recipients can watch the playlist.

URL parameters

The iframe embed and the hosted page link take these parameters:

    • Parameter
    • Description
    • id
    • The playlist ID
    • pi
    • The player configuration ID
    • display
    • Playlist position: right, left or hidden
    • playlistAutoplay
    • true plays the next video automatically
    • delay
    • Seconds between videos. Only used with playlistAutoplay=true
    • loop
    • true starts over after the last video
    • shuffle
    • true plays the videos in random order

Share a playlist as Flowplayer Spins

The Flowplayer Spins tab creates an embed code for Flowplayer Spins, a vertical short-form video feed like TikTok©, Instagram© Reels or YouTube© Shorts. Viewers swipe or scroll from one video to the next. Spins works best with vertical (9:16) videos.

Spins is currently in beta. Features, APIs and behaviors may change.

The Spins tab has no player configuration or playlist options. It shows a preview of the feed and the embed code:

Sharing a playlist as Flowplayer Spins

The embed code looks like this:

<div id="fp-spins-container-5633975571049908"></div>
<script type="module">
  import {createSpins} from "https://embed.wowza.com/spins/stable/0060685e-f614-41e5-bb1c-20eda53b8016.js";

  const spinsContainer = createSpins({
    playlist: "ee85f6a7-acae-4b8b-baa6-9e9a5c05389b",
  });

  document.getElementById("fp-spins-container-5633975571049908").append(spinsContainer);
</script>

The last segment of the import URL is your workspace ID. The module loads the Spins package and authorizes it with a player token of your workspace, so you don't need to add a token. The playlist property holds the playlist ID. The number in the container ID is random and only keeps the ID unique on the page.

To customize the feed, add Spins configuration options to the createSpins() call, for example lang, ima and adFrequency for ads, or share. You can also listen to Spins events on the returned container.

Results