Implemented HLS player (client-side), added scaffold for server-side HLS streamer

This commit is contained in:
the-m-monk
2025-12-30 00:29:05 +10:00
parent 32da27c404
commit 60edd082af
7 changed files with 74 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
import { url_params } from '/web/js/lib/search_params.js'
const src = `/hls/index.m3u8?lib=${url_params.get("lib")}&path=${url_params.get("path")}`
const player = videojs('video-player', {
autoplay: true,
})
player.ready(() => {
player.src({
src,
type: 'application/x-mpegURL'
})
player.play()
})