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:

Code Block Example
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)

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:

Code Block Example
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)