diff options
author | Sam Potts <sam@potts.es> | 2020-01-30 14:23:40 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-30 14:23:40 +0000 |
commit | 58f5380694993891892e4e24ba0904434892e538 (patch) | |
tree | 4de3d7b46d33192a43a0b40c3f3a9a5f90f9b071 /src/js/ui.js | |
parent | 9d512911252cf4835c2b7364cb4ae392cb277a1d (diff) | |
parent | fefcca78052174dce73f8dfe7df5b264edb0653a (diff) | |
download | plyr-58f5380694993891892e4e24ba0904434892e538.tar.lz plyr-58f5380694993891892e4e24ba0904434892e538.tar.xz plyr-58f5380694993891892e4e24ba0904434892e538.zip |
Merge pull request #1662 from sampotts/develop
3.5.7
Diffstat (limited to 'src/js/ui.js')
-rw-r--r-- | src/js/ui.js | 3 |
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 |