Skip to content

Commit

Permalink
release 2.6.7
Browse files Browse the repository at this point in the history
  • Loading branch information
fregiese committed Aug 2, 2023
1 parent 37c4eb4 commit 9acdae4
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 10 deletions.
5 changes: 5 additions & 0 deletions changelog.md
@@ -1,5 +1,10 @@
# Version History

## *2.6.7 (2023/08/02)*
### QUALITY PLUGIN
* The `cleanMediaSource` function was updated to avoid captions being
deleted when the quality of video is changed.

## *2.6.6 (2022/04/26)*

### QUALITY PLUGIN
Expand Down
17 changes: 11 additions & 6 deletions dist/quality/quality.js
Expand Up @@ -274,13 +274,18 @@ Object.assign(MediaElementPlayer.prototype, {
}
},
cleanMediaSource: function cleanMediaSource(media) {
for (var i = 0; i < media.children.length; i++) {
var _mediaNode = media.children[i];
if (_mediaNode.tagName === 'VIDEO') {
while (_mediaNode.firstChild) {
_mediaNode.removeChild(_mediaNode.firstChild);
}
var _loop2 = function _loop2(i) {
var mediaNode = media.children[i];
if (mediaNode.tagName === 'VIDEO') {
var sourceNodes = mediaNode.querySelectorAll('source');
Array.from(sourceNodes).forEach(function (sourceNode) {
mediaNode.removeChild(sourceNode);
});
}
};

for (var i = 0; i < media.children.length; i++) {
_loop2(i);
}
},
getMapIndex: function getMapIndex(map, index) {
Expand Down
2 changes: 1 addition & 1 deletion dist/quality/quality.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "mediaelement-plugins",
"version": "2.6.6",
"version": "2.6.7",
"repository": {
"type": "git",
"url": "https://github.com/mediaelement/mediaelement-plugins.git"
Expand Down

0 comments on commit 9acdae4

Please sign in to comment.