mirror of
https://git.sr.ht/~cadence/cloudtube
synced 2026-03-02 02:31:35 +00:00
Implement preferred quality selection
The list is subject to change as I collect more feedback. I just want to get this initial change out for everyone to use and appreciate.
This commit is contained in:
parent
fd854ec222
commit
ac3de4b4e6
6 changed files with 85 additions and 19 deletions
|
|
@ -87,10 +87,11 @@ const playManagers = {
|
|||
class QualitySelect extends ElemJS {
|
||||
constructor() {
|
||||
super(q("#quality-select"))
|
||||
this.on("input", this.onInput.bind(this))
|
||||
this.on("input", this.setFormat.bind(this))
|
||||
this.setFormat()
|
||||
}
|
||||
|
||||
onInput() {
|
||||
setFormat() {
|
||||
const itag = this.element.value
|
||||
formatLoader.play(itag)
|
||||
video.focus()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue