Skip to content

Commit 87cf0e1

Browse files
author
Danja
committed
release 2.6.3
1 parent 795032d commit 87cf0e1

File tree

14 files changed

+73
-69
lines changed

14 files changed

+73
-69
lines changed

changelog.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Version History
22

3+
## *2.6.3 (2022/11/18)*
4+
5+
### QUALITY PLUGIN
6+
Improvements to the last quality-plugin update:
7+
* Fixes the problem that it was not possible to switch between video qualities due to a bug (PR #229, Issue #196)
8+
* Fixes some linting errors
9+
310
## *2.6.2 (2021/11/04)*
411

512
### QUALITY PLUGIN

dist/quality/quality.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@
4242

4343
.mejs__qualities-selector li,
4444
.mejs-qualities-selector li {
45+
border: 0.06rem solid transparent;
4546
color: #fff;
4647
cursor: pointer;
4748
display: block;
4849
list-style-type: none!important;
4950
overflow: hidden;
5051
padding: 0 0.625rem;
51-
border: 0.06rem solid transparent;
5252
}
5353

5454
.mejs__qualities-selector li:hover,

dist/quality/quality.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ Object.assign(MediaElementPlayer.prototype, {
200200
t.updateQualityButton(this, player, currentQuality);
201201
t.switchHLSQuality(player, media);
202202
} else {
203-
t.updateQualityButton(this, player, currentQuality);
203+
currentQuality = t.updateQualityButton(this, player, currentQuality);
204204

205205
var currentTime = media.currentTime;
206206
var paused = media.paused;
@@ -324,10 +324,9 @@ Object.assign(MediaElementPlayer.prototype, {
324324
}
325325
}
326326
},
327-
updateQualityButton: function updateQualityButton(self, player, currentQuality) {
327+
updateQualityButton: function updateQualityButton(self, player) {
328328
var t = this;
329329
var newQuality = self.value;
330-
currentQuality = newQuality;
331330

332331
var formerSelected = player.qualitiesContainer.querySelectorAll('.' + t.options.classPrefix + 'qualities-selected');
333332
for (var i = 0, total = formerSelected.length; i < total; i++) {
@@ -345,6 +344,7 @@ Object.assign(MediaElementPlayer.prototype, {
345344
}
346345

347346
player.qualitiesContainer.querySelector('button').innerHTML = newQuality;
347+
return newQuality;
348348
},
349349
getQualityFromHeight: function getQualityFromHeight(height) {
350350
if (height >= 4320) {

dist/quality/quality.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/quality/quality.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mediaelement-plugins",
3-
"version": "2.6.2",
3+
"version": "2.6.3",
44
"repository": {
55
"type": "git",
66
"url": "https://github.com/mediaelement/mediaelement-plugins.git"

0 commit comments

Comments
 (0)