sampotts/plyr

How to add change quality video Using hls.js and plyr

Open

#652 opened on Sep 4, 2017

View on GitHub
 (5 comments) (0 reactions) (1 assignee)JavaScript (2,856 forks)batch import
FeatureHelp WantedStreaming

Repository metrics

Stars
 (25,318 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

How to add change quality video Using hls.js and plyr

`

if (Hls.isSupported()) { var hls = new Hls(); hls.loadSource('https://content.jwplatform.com/manifests/vM7nH0Kl.m3u8'); hls.attachMedia(video); hls.on(Hls.Events.MANIFEST_PARSED,function() { video.play(); }); }

plyr.setup(video); })(); `

Contributor guide