Comments

Comments are currently available only for livestreams.

To enable comments, pass the option comments: true in the player setup configuration. This will render the comments in the default player layout.

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

You may also provide the ID of a container element, similar to how the player container itself is defined.

Example placing comments outside of the videoplayer:

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

<script type="text/javascript">
  let comments = document.querySelector('#comments')
  let player = 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

Last updated