UI options

    UI options


    Article summary

    Defines the display status of each UI element of the Shoplive Player.

    Key

    Value

    Description

    viewCount

    true/false

    Determines whether or not to display the view count.

    likeCount

    true/false

    Determines whether or not to display the like count.

    backButton

    true/false

    Determines whether or not to display the back button.

    shareButton

    true/false

    Determines whether or not to display the share button.

    UI Display Option

    <div id="shoplive-player"></div>
    <script defer>
      let config = { 
        campaignKey: "YOUR_CAMPAIGN_KEY_HERE", 
        ui: {
          viewerCount: true,  
          likeCount: true,    
          backButton: true,   
          shareButton: true
        } 
      }
      cloud.shoplive.setPlayer("shoplive-player", config);
    </script>


    What's Next