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
  • Additional Options
  • Live Demo
  1. Plugins

Comments

Comments are only availabe for livestreams. To activate them, pass the option comments: true to the setup options.

Alternatively, you can pass a HTML Element instead of true, to embed the comments anywhere on your page.

You could also pass the ID of the container instead, like for the player container.

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

<script type="text/javascript">
  var comments = document.querySelector('#comments')

  var js3qVideoPlayer = new js3q({
    dataid: '5c3b0910-8850-11e7-9273-002590c750be',
    container: 'player',
    comments: comments,
    comments_username: 'Preset for the username',
    comments_dataid: '16a61ee1-784c-11ea-97a4-002590c750be',
  })
</script>

Additional Options

Key
Type
Description

comments_username

String

The Preset for the username

comments_dataid

String

The dataid of another live-stream

comments_align

String

"top" (default) or "bottom" - Alignment for the auto scroll, after the user added a comment

comments_permanentUsername

Boolean

Lock the username, after the first message was sent. (or, if `comments_username` is set)

Live Demo

PreviousMulti Channel LivestreamsNextLive Reactions

Last updated 16 days ago