> ## Documentation Index
> Fetch the complete documentation index at: https://docs.videowise.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Live Shopping

> The Videowise Live Shopping now supports interception and tracking of custom events. This provides customers with a more comprehensive view of user interactions with video content

To intercept and handle these custom events, customers can utilize the `window.addEventListener` method. Below is an example of how to listen for these events:

```javascript Code Block Example theme={null}
window.addEventListener("videowiseLiveOnInteraction", (event) => {
  console.log(event.detail.interactionType); // for example mute_player
  console.log(event.detail); // return Data from event
});
```

## Events

### videowiseLiveOnPlay

Triggered when the live stream is playing.

* `clientTS`
* `currentTime`
* `device`
* `eventType`
* `interactionType = resume_player`
* `isLive`
* `lsId`
* `organisationId`
* `siteId`
* `uid`
* `url`
* `videoElapsedMinutes`
* `videoElapsedSeconds`

### videowiseLiveOnStop

Triggered when the live stream is closed.

* `clientTS`
* `currentTime`
* `device`
* `eventType`
* `interactionType = close_player`
* `isLive`
* `lsId`
* `organisationId`
* `siteId`
* `uid`
* `url`
* `videoElapsedMinutes`
* `videoElapsedSeconds`

### videowiseLiveOnInteraction

Triggered when a user executes a specific interaction during the live stream.

* `clientTS`
* `currentTime`
* `device`
* `eventType`
* `interactionType`
* `isLive`
* `lsId`
* `organisationId`
* `siteId`
* `uid`
* `url`
* `videoElapsedMinutes`
* `videoElapsedSeconds`

The interactonType can be:

* `mute_player`
* `unmute_player`
* `pause_player`
* `resume_player`
* `like_reaction`
* `share`
* `add_to_calendar`
* `send_chat`
* `minimize_player`
* `maximize_player`
* `show_product_list`
* `hide_product_list`
* `product_click`
* `add_to_cart`
* `checkout`
* `show_cart`
* `hide_cart`
* `replay`
* `progress`

If `interactionType = share` then the event will contain in addition:

* `socialShare`

If `interactionType = product_click | add_to_cart` then the event will contain in addition:

* `item` (which is data about product from the live stream)

### videowiseLiveStreamingPlayerInit

Triggered when the live streaming player is initialized.
