beaker-video-player
- beaker-video-player works with dat links apart from working with as any other HTML5 video player does.
- It would automatically find the subtitles(srt, vtt) for you in dat directory.
- Given a playlist(m3u only) dat link, it returns
next, prev
functions which you can use to navigate through playlist.
npm install beaker-video-player
example
const videoPlayer =const url = 'dat://1047fec2e6c4bc9756811a768396912ce89af5f691b7fbbabad3d10/playlist.m3u'// classname is optional, you can also pass just url string like -- videoPlayer(url)const el prev next =eleleleldocumentbodydocumentdocument
License
MIT