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
  • Type Definitions
  1. Guides
  2. Player Communication
  3. Message API Reference

Media Item

PreviousMedia — ResumeNextMedia Item — Emoji

Last updated 3 months ago

The LiSA Player communicates key events related to the current media item by dispatching various messages:

  • Creator Join — Notifies when a creator enters a live stream.

  • Creator Leave — Notifies when a creator exists a live stream.

  • — Captures user reactions through emoji interactions.

  • — Indicates when a media item has been viewed.

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

Properties

Along with all standard , a Media Item 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.

The messageType property specifies the distinct type of message.

progress

Required.


Type Definition

interface MediaItemMessage extends Omit<
  Message,
  'messageType' | 'sender'
> {

  mediaItemId: string;
  mediaItemType: MediaItemType;
  messageType:
    | 'lsc:media:creator:join'
    | 'lsc:media:creator:leave'
    | 'lsc:media:emoji'
    | 'lsc:media:impression';
  progress: MediaProgress;
  sender: 'LiSA';
}

Type Definitions

Media Item Type

The MediaItemType property is an enum that defines the type of media item. It helps differentiate between live content, recorded replays, and short-form media.

  • live – A real-time live stream with an undefined duration (durationInMs = -1).

  • replay – A recorded playback of a previous live stream with a fixed duration.

  • story – A short-form media item, typically with a defined duration and limited availability.

type MediaItemType = 'live' | 'replay' | 'story';

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.

string
MediaItemType
Literal
MediaProgress
MediaItemType
Emoji
Impression
Message properties
MediaProgress