- Print
API: Play
- Print
play
Play the video using the ShopLivePlayerData.
| Parameter name | Description | 
|---|---|
| campaignKey | CampaignKey of the video to be played. (required) | 
| keepWindowStateOnPlayExecuted | Whether to start playing while maintaining th current mode of the playing player style. (Default : false) 
 | 
| referrer | Parameter for collecting data of how customer joined the campaign (optional) | 
| campaignHandler | ((ShopLivePlayerCampaign) -> ())? Listen to ShopLive Campaign data | 
| brandHandler | ((ShopLivePlayerBrand) -> ())? Listen to ShopLive Campaign Brand data | 
| isEnabledVolumeKey | A feature has been added to the preview that allows it to be unmuted based on devices’s volume. (default : false) | 
In an Objective-C environment, use the
ShopLivePlayerDataObjcobject.
ShopLivePlayerCampaign
| Parameter name | Description | 
|---|---|
| title | Campaign title | 
| campaignStatus | Campaign status (READY, ONAIR, CLOSED) | 
ShopLivePlayerBrand
| Parameter name | Description | 
|---|---|
| name | Brand name | 
| identifier | Brand identifier | 
| imageUrl | Thumbnail address of Brand | 
Sample code
- Integration guide: Play Shoplive Player 
preview
Play the preview using the ShopLivePlayerData.
ShopLivePlayerData
| Parameter name | Description | 
|---|---|
| campaignKey | CampaignKey of the video to be played. (required) | 
| keepWindowStateOnPlayExecuted | Whether to start playing while maintaining th current mode of the playing player style. (Default : false) 
 | 
| referrer | Parameter for collecting data of how customer joined the campaign (optional) | 
| campaignHandler | ((ShopLivePlayerCampaign) -> ())? Listen to ShopLive Campaign data | 
| brandHandler | ((ShopLivePlayerBrand) -> ())? Listen to ShopLive Campaign Brand data | 
| isEnabledVolumeKey | A feature has been added to the preview that allows it to be unmuted based on devices’s volume. (default : false) | 
| isMuted | Use to mute or unmute Preview | 
In an Objective-C environment, use the
ShopLivePlayerDataObjcobject.
Sample code
- Integration guide: Play Shoplive Player 
close
End the video currently being watched.
Sample code
ShopLive.close().png)