Explore different use cases and features of the VSRCPlayer library
Video on Demand playback with standard controls and features. Learn the basics of VOD playback.
Live HLS streaming with automatic M3U8 probing. See how the player handles live content.
Comprehensive demonstration of all API methods and advanced capabilities of VSRCPlayer.
Live streaming with real-time WebSocket chat. Configurable color palette and responsive layout.
To use VSRCPlayer in your project:
<!-- Include the library -->
<script src="dist/vsrc-player.js"></script>
<!-- Create a video element -->
<video id="my-player" class="video-js"></video>
<!-- Initialize the player -->
<script>
const player = new VSRCPlayer('#my-player', {
type: 'vod',
mediaId: 'my-video-123',
onReady: (player) => {
console.log('Player ready!');
}
});
</script>