Developers

Web widget components

Video player

Support chat

This is a custom component that can be used to embed a video player in the widget.

1const VideoPlayer = ({ videoId }) => { 2 const videoSrc = `https://www.youtube.com/embed/${videoId}`; 3 return ( 4 <iframe 5 width="380" 6 height="213" 7 src={videoSrc} 8 allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" 9 allowFullScreen 10 ></iframe> 11 ); 12};