window. Use window.addEventListener to intercept them.
These events are for live shopping. Widget events are documented separately — see Shoppable video custom events. On React Native, live events arrive through onEvent on LiveShoppingChannel — see Live Shopping Channel.
Code Block Example
customCart
SetcustomCart: true on window.videowiseInfo when the storefront owns add-to-cart (headless Shopify, custom cart drawer, Hydrogen, and so on).
When customCart is true, a Shop Now click in the live player:
- Does not call Shopify
/cart/add.js(no Videowise Ajax cart, no in-player cart). - Minimizes the player.
- Always dispatches
videowiseProductAddToCarton the parent storefront (the player iframe posts it to the host page). - Does not dispatch
videowiseLiveOnInteractionwithinteractionType = add_to_cart— that interaction is only fired from Shopify Ajax add.
customCart is true. Cart icon taps still show, but they only dispatch videowiseLiveOnInteraction with interactionType = show_cart — open your own cart UI from that event. hide_cart is not sent (there is no in-player cart to close).
You must listen for videowiseProductAddToCart on the parent page and add the item with your own cart logic. If you do not, nothing is added to the cart. Do not wait for add_to_cart on videowiseLiveOnInteraction.
videowiseProductAddToCart, event.detail includes productName, productId, variantId, qty, price, currencyCode, deviceType, url, subscriptionId, and selectedVariant.
When customCart is omitted or false, live shopping still adds via Shopify Ajax, fires videowiseLiveOnInteraction with add_to_cart, and still fires videowiseProductAddToCart (for tracking or extra UI). The custom event is required for cart only when customCart is true.
This is separate from shoppable widget add-to-cart (Buy button → Virtual cart). Widgets use that dashboard setting; live shopping uses videowiseInfo.customCart. See Shoppable video custom events.
Events
videowiseLiveOnPlay
Triggered when the live stream is playing.clientTScurrentTimedeviceeventTypeinteractionType = resume_playerisLivelsIdorganisationIdsiteIduidurlvideoElapsedMinutesvideoElapsedSeconds
videowiseLiveOnStop
Triggered when the live stream is closed.clientTScurrentTimedeviceeventTypeinteractionType = close_playerisLivelsIdorganisationIdsiteIduidurlvideoElapsedMinutesvideoElapsedSeconds
videowiseLiveOnInteraction
Triggered when a user executes a specific interaction during the live stream.clientTScurrentTimedeviceeventTypeinteractionTypeisLivelsIdorganisationIdsiteIduidurlvideoElapsedMinutesvideoElapsedSeconds
mute_playerunmute_playerpause_playerresume_playerlike_reactionshareadd_to_calendarsend_chatminimize_playermaximize_playershow_product_listhide_product_listproduct_clickadd_to_cart— only whencustomCartis not set. WithcustomCart: truethis interaction is not dispatched; usevideowiseProductAddToCartinstead.checkoutshow_cart— cart icon tap. WithcustomCart: truethis is how you open your cart (the in-player virtual cart does not open). WithoutcustomCart, this fires when the in-player cart opens.hide_cart— in-player cart closed. Not sent whencustomCartistrue.replayprogress
interactionType = share then the event will contain in addition:
socialShare
interactionType = product_click | add_to_cart then the event will contain in addition:
item(which is data about product from the live stream)
add_to_cart is emitted from Shopify Ajax add (handleAddToCart). When window.videowiseInfo.customCart is true, that path is skipped, so videowiseLiveOnInteraction will not have interactionType = add_to_cart.
videowiseLiveStreamingPlayerInit
Triggered when the live streaming player is initialized.videowiseProductAddToCart
Dispatched on the parent storefront when the shopper clicks Shop Now in the live player (the iframe posts the event to the host page). Listen on the parentwindow, not inside the player iframe.
event.detail:
productNameproductIdvariantIdqtypricecurrencyCodedeviceTypeurlsubscriptionIdselectedVariant
customCart is omitted or false, Shopify Ajax add still runs, videowiseLiveOnInteraction still includes add_to_cart, and videowiseProductAddToCart still fires (for tracking or extra UI).
customCart: true — see customCart.