import { createVinylPlayer } from '@amzn/vinyl'
// Create a video element or select it from the DOM:
const media = document.querySelector('video')
// Create a new Vinyl player, passing the media element:
const player = createVinylPlayer({ media })
// Load an HLS track:
player.load({
type: 'hls',
uri: 'https://example.com/main.m3u8',
})