This is similar to ChipBot’s primary built-in video grid, but it can be rendered inline on a page. It brings some basic styles, but you must style it using CSS.
<div class="chipbot-render-video-grid"></div>
Attributes:
This will render ChipBot’s “floating icon” as an embeddable element within the page.
<a class="chipbot-render-video-icon" data-video-exp-id="{videoExpId}"></a>
As long as the element contains the class name below, ChipBot will look for it and add a click event listener to the element.
This is useful when you want a link, image, or custom UI to open a video, instead of ChipBot’s default icon settings.
<a class="chipbot-open-video" data-video-exp-id="{videoExpId}"></a>
<div class="chipbot-render-embed-video" data-video-exp-id="{videoExpId}"></div>
It is the same as the JavaScript function but can also be called via HTML.
Same as the HTML functionality but can be initiated via JavaScript.
chipBotApi.renderVideoGrid(document.querySelector('.my-class-name'));
This will show a specific video icon, regardless of the rules configured on the video.
chipBotApi.showVideoIcon('{videoExpId}');
This will hide the video icon.
chipBotApi.hideVideoIcon();
chipBotApi.getVideoExperienceList();
This renders a video icon inline on a page. Clicking it will open ChipBot normally as if the video icon were on the bottom corner of the website.
chipBotApi.renderVideoIcon(document.querySelector('.my-class-name'), {videoExpId: '{videoExpId}'});
This renders the full-size video of ChipBot inline on a page.
chipBotApi.renderEmbedVideo(document.querySelector('.my-class-name'), {videoExpId: 'videoexp_ID'});