LiSA Social Commerce
Developers
Developers
  • Developers
  • Guides
    • Integration Guide
      • Web Integration
      • App Integration
        • Android
          • Communication
          • Storage
          • File Downloads
          • Theming
        • iOS
          • Communication
          • Storage
          • File Downloads
          • Theming
        • React Native
          • Communication
          • Storage
          • File Downloads
          • Theming
        • Picture in Picture
      • Entrypoints
        • Query Parameter (v1)
    • Player Communication
      • Message API Reference
        • App
          • App — Heartbeat
          • App — Message Acknowledge
          • App — Message Error
          • App — Listen
        • CTA
          • CTA — Link in Comments
          • CTA — Sponsor Badge
        • Cart — View Cart
        • Comments — Join
        • Media
          • Media — Complete
          • Media — Pause
          • Media — Progress
          • Media — Resume
        • Media Item
          • Media Item — Emoji
          • Media Item — Impression
        • Player
          • Player — Dismiss
          • Player — Native Picture-in-Picture (PiP)
          • Player — Pass Visual Viewport
          • Player — Request Visual Viewport
          • Player — UI Transition
        • Products
          • Products — Add to Cart
          • Products — Add to Wishlist
          • Products — Click
          • Products — Close Product List
          • Products — Emoji
          • Products — Emoji State Update
          • Products — Impression
          • Products — Open Product List
        • Stickers
          • Stickers — Activate
          • Stickers — Click
          • Stickers — Expire
          • Stickers — Impression
          • Stickers — Publish
          • Stickers — Unlock
          • Stickers — Unpublish
          • Stickers — Update
          • Stickers — Voucher Claim
        • Visitor — Pass User Context
        • Shared Legacy Message Properties
    • Products
      • Product Update Notification API
  • Widgets
    • Content Hub
    • Quick Start Guide
    • Appearance
      • Markup
      • Responsive design
    • Configuration options
      • Autoplay
      • Channel
      • Client
      • Data
      • Debug
      • Host node
      • Layout
      • Language
      • On
      • Player
      • Query string
      • Quick view
      • Sections
      • Store
      • Template
    • API reference
      • Library API reference
      • Player API reference
      • Quick View API reference
    • Customisations
      • Template
      • Bring your own template
      • Type definitions
    • Examples
    • Type definitions
      • Asset
      • Product
      • Other
    • Promo Widget
      • Quick Start Guide
      • Configuration options
        • Autoplay
        • Channel
        • Countdown (deprecated)
        • Enabled
        • Image modifier
        • Lead time
        • Live (deprecated)
        • Position
        • Replay (deprecated)
        • Show ID
        • URL
  • Media Player Introduction
    • Picture-in-Picture Mode
  • Analytics
  • REST API
    • Authentication
    • Rate limits
    • Response status and error codes
    • API Documentation
Powered by GitBook
On this page
  • Properties
  • Type Definition
  • Examples
  1. Guides
  2. Player Communication
  3. Message API Reference

Comments — Join

PreviousCart — View CartNextMedia

Last updated 1 month ago

The LiSA Player generates a message whenever a visitor joins the chat in a live stream.

This message is sent by the LiSA Player to the host app / environment.

Properties

Along with all standard , a Join message includes the following additional properties:

Name
Type
Description

mediaItemId

Required.

The mediaItemId property uniquely identifies the Media Item from which this message originates.

mediaItemType

Required.

messageType

Required.

lsc:comments:audience:join

progress

Required.

visitorAvatarUrl

Optional.

The visitorAvatarUrl property is used to provide a URL pointing to an image that represents the visitor's avatar.

visitorExternalId

Optional.

visitorName

Required.

The visitorName property represents the visitor's display name.

  • If not included, it contains the username the visitor chose when joining the chat.

Legacy Properties

If your integration uses LiSA Player Version 1, none of the properties described above will be available.

For LiSA Player Version 2, legacy properties can be ignored.

Name
Type
Description

action

Required.

target

Required.

user

Required.


Type Definition

interface CommentsJoinMessage extends Omit<
  Message,
  'messageType' | 'sender'
> {
  mediaItemId: string;
  mediaItemType: MediaItemType;
  messageType: 'lsc:cart:view';
  progress: MediaProgress;
  visitorAvatarUrl?: string;
  visitorExternalId?: string;
  visitorName: string;
}

User

Name
Type
Description

id

Required.

name

Required.

The visitorName property represents the visitor's display name.

  • If not included, it contains the username the visitor chose when joining the chat.

type

Required.

viewer

interface User {
  id: string;
  name: string;
  type: 'viewer';
}

Examples

{
  "clockDriftInMs": 0,
  "mediaItemId": "9f333331-45cb-4289-8bcd-9023c1871111",
  "mediaItemType": "live",
  "messageType": "lsc:comments:audience:join",
  "progress": {
    "bufferedTimeInMs": 636036,
    "currentTimeInMs": 619609,
    "durationInMs": 4616000,
    "elapsedTimeInMs": 22761,
    "isLive": true,
    "isPlaying": true,
    "skipTimeInMs": 600000,
    "visitorDwellTimeInMs": 23882
  },
  "sender": "LiSA",
  "visitorAvatarUrl": "https://my-cdn.com/path/to/image.jpg",
  "visitorExternalId": "65cf573a-8c51-4b89-b2da-3d79b35fcf1b",
  "visitorName": "Jane Doe",
  
  "action": "chat-join",
  "target": "show.engage",
  "user": {
    "id": "65cf573a-8c51-4b89-b2da-3d79b35fcf1b",
    "name": "Jane Doe"
    "type": "viewer"
  }
}

The mediaItemType property specifies the type of Media Item from which this message originates. Refer to for detailed information.

The progress property is an object that holds additional metadata related to the media playback progress of the current media item. Please refer to for detailed information.

The visitorExternalId property specifies the visitor's ID as provided in the message.

If provided in the message, it reflects the name assigned by the host app.

chat-join Please use messageType instead.

show.engage Please use messageType instead.

The user property specifies the essential user properties. Please refer to for detailed information. Please use visitor* properties instead.

The visitorExternalId property specifies the visitor's ID as provided in the message.

If provided in the message, it reflects the name assigned by the host app.

string
MediaItemType
Literal
MediaProgress
String
String
String
String
Literal
User
String
Literal
Literal
⚠️
⚠️
Pass User Context
Pass User Context
Pass User Context
Pass User Context
⚠️
User
Message properties
MediaItemType
MediaProgress