UI Option

    UI Option


    Article summary

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

    Key

    Value

    Description

    viewCount

    true/false

    whether or not to display the view count.

    likeCount

    true/false

    whether or not to display the like count.

    backButton

    true/false

    whether or not to display the back button.

    shareButton

    true/false

    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