Guides

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' | 'SHOPBY' This value is used for simplified e-commerce integration.

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

setFloatingType

ParametersTypeRequireDescription
type'scroll' | 'basic'trueThis defines the floating player type.
sizewidth?: string; height?: StringfalseSpecifies the size of the floating player. The value follows standard CSS sizing.
restrictionArea element?: HTMLElement;
elementId?: String;
falseSpecifies 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"falseA value of 1 indicates a registered member; 0 indicates a guest.
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.