aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/ui.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2020-02-09 21:53:24 +0000
committerGitHub <noreply@github.com>2020-02-09 21:53:24 +0000
commit8c44425665e4f1cd4fb3fa8593e960d5a518147b (patch)
tree7d7d3eb58ab402a204b5a81c3daead4fd695ade6 /src/js/ui.js
parentb2ac730572ad81aa9755e8b7852c53ceba0e8e9f (diff)
parent93e3f8946a0bcbca27912658d82930e4a5deb2b8 (diff)
downloadplyr-8c44425665e4f1cd4fb3fa8593e960d5a518147b.tar.lz
plyr-8c44425665e4f1cd4fb3fa8593e960d5a518147b.tar.xz
plyr-8c44425665e4f1cd4fb3fa8593e960d5a518147b.zip
Merge pull request #1679 from sampotts/develop
3.5.7
Diffstat (limited to 'src/js/ui.js')
-rw-r--r--src/js/ui.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/js/ui.js b/src/js/ui.js
index 953ecba2..b443766b 100644
--- a/src/js/ui.js
+++ b/src/js/ui.js
@@ -198,7 +198,9 @@ const ui = {
// Reset backgroundSize as well (since it can be set to "cover" for padded thumbnails for youtube)
backgroundSize: '',
});
+
ui.togglePoster.call(this, true);
+
return poster;
})
);
@@ -214,6 +216,7 @@ const ui = {
// Set state
Array.from(this.elements.buttons.play || []).forEach(target => {
Object.assign(target, { pressed: this.playing });
+ target.setAttribute('aria-label', i18n.get(this.playing ? 'pause' : 'play', this.config));
});
// Only update controls on non timeupdate events