Live Streaming Example

Live HLS Stream with M3U8 Probing

Description: This example demonstrates live streaming with automatic M3U8 probing. The player will probe for the M3U8 file at regular intervals until it becomes available.
Note: This example uses a demo HLS stream. The probing feature will activate when configured with a stream that needs to be checked for availability.
Status: Initializing...
Probe Log:

About Live Streaming

This example demonstrates live streaming capabilities. Key features:

Configuration Options:

Code Example:

const player = new VSRCPlayer('#live-player', {
    type: 'live',
    mediaId: 'my-live-stream-123',
    probeInterval: 5000,
    maxProbeAttempts: 12,
    onProbeSuccess: (player) => {
        console.log('Stream found and starting playback');
    },
    onProbeFailed: (player) => {
        console.error('Stream not available after all attempts');
    }
});