LogoLogo
  • Player API
    • Basic Usage
    • Configuration
    • Labels
    • Themes
    • Events
    • Key Bindings
    • Methods
  • Plugins
    • Call to Action
    • Branding
    • Watermark Protection
    • Playlists
    • Multi Channel Livestreams
    • Comments
    • Live Reactions
    • Quizzing
    • Peer2Peer (E-CDN)
    • Consent String
  • Release Notes
    • v5.3
    • v5.2
    • v5.1
    • v5.0
  • Tutorials
    • Switch between different livestreams
    • Use the Player with Require
    • Use Video Loop as background
  • Knowledge Base
    • Using a custom player for streaming
Powered by GitBook
On this page
  • Configuration
  • Player Methods
  1. Plugins

Multi Channel Livestreams

Configuration

<div id="player"></div>

<script>
  const player = new js3q({
    container: 'player',
    dataid: '...',
    // additional configurations
    multichannelstream: {
      items: [
        {
          dataid: '...',
          default: true,
          description: 'Lorem Ipsum',
          language: 'de',
          position: 1,
          poster: 'https://unsplash.it/400/400',
          title: 'Lorem Ipsum',
        },
        {
          dataid: '...',
          default: false,
          description: 'Lorem Ipsum',
          language: 'en',
          position: 2,
          poster: 'https://unsplash.it/400/400',
          title: 'Lorem Ipsum',
        },
      ],
    },
  })
</script>

The Multi-Channel Livestream Module is based on the Playlist plugin. Therefore the same Methods can be used:

Player Methods

Name
Parameters
Description

getPlaylistItems

Returns an array of all available items in the playlist

playlistItem

index: number

Sets the active medium to the given index

next

Plays the next item in the playlist

previous

Plays the previous item in the playlist

PreviousPlaylistsNextComments

Last updated 1 year ago