Payload Definition

This document explains how to define the payload object used when initializing the Saucelive player library.

setInit

ParametersTypeRequireDescription
broadcastIdStringtrueBroadcast ID
envStringfalseIf not used, it will be treated as an internal operation.example('stage')
platformStringfalse'CAFE24' \

For a practical example of how this works, refer to Basic Usage of the Library.

setFloatingType

Parameters

Type

Require

Description

type

'scroll' | 'basic'

true

This defines the floating player type.

size

width?: string; height?: String

false

Specifies the size of the floating player. The value follows standard CSS sizing.

restrictionArea

element?: HTMLElement;
elementId?: String;

false

Specifies the HTML element that can be used as the draggable area. Only one of the two options can be used.

For a practical example of how this works, refer to Floating Player Feature .

setMemberObject

ParametersTypeRequireDescription
nickNameStringtrueThe nickname displayed in the chat window.
memberIdStringtrueThe partner’s unique member ID.
genderStringfalseGender data.
memberType"0" \"1"false
ageStringfalseAge data.

For a practical example of how this works, refer to Authentication with the Player Library .

setMemberToken

ParametersTypeRequireDescription
XStringtrueJWT Token

For a practical example of how this works, refer to Authentication with the Player Library.