Experience TikTok Shop-style product tagging in videos
<!-- Include the shoppable video player script -->
<script src="/public/js/shoppable-video-player.js"></script>
<!-- Add data-video-id attribute to your video element -->
<video data-video-id="123" controls>
<source src="your-video.mp4" type="video/mp4">
</video>
<!-- That's it! Product tags will auto-load and display -->
const videoElement = document.getElementById('my-video');
const shoppablePlayer = new ShoppableVideoPlayer(videoElement, videoId);
{
"video_id": 1,
"product_id": 123,
"timestamp": 5.5, // Show at 5.5 seconds
"position_x": 50, // X position (%)
"position_y": 30, // Y position (%)
"duration": 5, // Show for 5 seconds
"product_name": "Cool Product",
"product_price": 29.99,
"product_image": "/path/to/image.jpg"
}