Skip to content

Commit 43d7b2f

Browse files
committed
release 4.0.1
1 parent 2954e05 commit 43d7b2f

File tree

4 files changed

+20
-11
lines changed

4 files changed

+20
-11
lines changed

RELEASE.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,11 @@ Instructions for the Maintainer
3232

3333
- add/commit/push all including build/
3434

35-
git add --all
36-
git commit -am "release 4.X.X"
37-
git push
38-
35+
```
36+
git add --all
37+
git commit -am "release 4.X.X"
38+
git push
39+
```
3940

4041
**********************
4142
PREPARING A RELEASE - second step on github.com

changelog.md

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

3+
## *4.0.1 (2024/09/09)*
4+
### SPEED PLUGIN
5+
* Fix always controlling the first player on the page via keyboard when multiple players exist.
6+
37
## *4.0.0 (2024/03/11)*
48
This release marks a major version update to address and correct previous versioning inaccuracies. The transition from version 3.0.0 to 3.0.1 introduced changes that, upon further review, have been identified as breaking. These changes warranted a more significant version increment to reflect their impact accurately.
59

dist/speed/speed.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ Object.assign(MediaElementPlayer.prototype, {
100100
radios = player.speedButton.querySelectorAll('input[type="radio"]'),
101101
labels = player.speedButton.querySelectorAll('.' + t.options.classPrefix + 'speed-selector-label');
102102

103+
player.speedRadioButtons = radios;
104+
103105
for (var _i2 = 0, _total2 = inEvents.length; _i2 < _total2; _i2++) {
104106
player.speedButton.addEventListener(inEvents[_i2], function () {
105107
mejs.Utils.removeClass(player.speedSelector, t.options.classPrefix + 'offscreen');
@@ -154,9 +156,10 @@ Object.assign(MediaElementPlayer.prototype, {
154156
action: function action(player, media, key, event) {
155157
if (event.key != '<') return;
156158

157-
for (var _i7 = 0; _i7 < radios.length - 1; _i7++) {
158-
if (radios[_i7].checked) {
159-
var nextRadio = radios[_i7 + 1];
159+
var _radios = player.speedRadioButtons;
160+
for (var _i7 = 0; _i7 < _radios.length - 1; _i7++) {
161+
if (_radios[_i7].checked) {
162+
var nextRadio = _radios[_i7 + 1];
160163
nextRadio.dispatchEvent(mejs.Utils.createEvent('click', nextRadio));
161164
break;
162165
}
@@ -167,9 +170,10 @@ Object.assign(MediaElementPlayer.prototype, {
167170
action: function action(player, media, key, event) {
168171
if (event.key != '>') return;
169172

170-
for (var _i8 = 1; _i8 < radios.length; _i8++) {
171-
if (radios[_i8].checked) {
172-
var prevRadio = radios[_i8 - 1];
173+
var _radios = player.speedRadioButtons;
174+
for (var _i8 = 1; _i8 < _radios.length; _i8++) {
175+
if (_radios[_i8].checked) {
176+
var prevRadio = _radios[_i8 - 1];
173177
prevRadio.dispatchEvent(mejs.Utils.createEvent('click', prevRadio));
174178
break;
175179
}

dist/speed/speed.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.

0 commit comments

Comments
 (0)