HLS Streaming
HLS stream with auto-format detection. Uses hls.js on desktop, native HLS on iOS and Safari.
Source code
<link rel="stylesheet" href="https://cdn.impossible.io/support/fxplayer.css" />
<script src="https://cdn.impossible.io/fxplayer/v3/fxplayer.js"></script>
<div id="player" style="width: 720px; aspect-ratio: 16/9;"></div>
<script>
const player = new fxplayer.FXPlayer('player', {
src: 'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8',
controls: true,
});
player.on('ready', () => console.log('HLS stream ready'));
player.on('error', (e) => console.error('Error:', e.message));
</script>