mirror of
https://github.com/kmoskwiak/videojs-resolution-switcher.git
synced 2025-10-03 01:39:19 +02:00
dynamic label hot fix
This commit is contained in:
parent
b120a90942
commit
7153217cb5
1 changed files with 0 additions and 5 deletions
|
@ -34,10 +34,6 @@
|
||||||
this.on('touchstart', this.onClick)
|
this.on('touchstart', this.onClick)
|
||||||
},
|
},
|
||||||
onClick: function(){
|
onClick: function(){
|
||||||
console.log(this.el().parentNode.children)
|
|
||||||
this.el().parentNode.children.forEach(function(el){
|
|
||||||
el.classList.remove('vjs-selected')
|
|
||||||
})
|
|
||||||
// Hide bigPlayButton
|
// Hide bigPlayButton
|
||||||
player.bigPlayButton.hide()
|
player.bigPlayButton.hide()
|
||||||
// Remember player state
|
// Remember player state
|
||||||
|
@ -154,7 +150,6 @@
|
||||||
|
|
||||||
// Create resolution switcher for videos form <source> tag inside <video>
|
// Create resolution switcher for videos form <source> tag inside <video>
|
||||||
if(player.options_.sources.length > 1){
|
if(player.options_.sources.length > 1){
|
||||||
console.log(player.options_.sources)
|
|
||||||
player.updateSrc(player.options_.sources)
|
player.updateSrc(player.options_.sources)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue