aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/controls.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2017-11-04 22:41:18 +1100
committerSam Potts <sam@potts.es>2017-11-04 22:41:18 +1100
commit597b3fe0dbb6affbcb70b37d3b10886f273ab2b3 (patch)
tree6b8787e6465e993d79679c3ef4c97e9623bee36f /src/js/controls.js
parentd920de2a25b1f9b3981671bbe9099af61e74410f (diff)
downloadplyr-597b3fe0dbb6affbcb70b37d3b10886f273ab2b3.tar.lz
plyr-597b3fe0dbb6affbcb70b37d3b10886f273ab2b3.tar.xz
plyr-597b3fe0dbb6affbcb70b37d3b10886f273ab2b3.zip
Retrofit PRs
Diffstat (limited to 'src/js/controls.js')
-rw-r--r--src/js/controls.js14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/js/controls.js b/src/js/controls.js
index c95c6197..8ede68b7 100644
--- a/src/js/controls.js
+++ b/src/js/controls.js
@@ -49,7 +49,7 @@ const controls = {
getIconUrl() {
return {
url: this.config.iconUrl,
- absolute: this.config.iconUrl.indexOf('http') === 0 || this.browser.isIE,
+ absolute: this.config.iconUrl.indexOf('http') === 0 || (this.browser.isIE && !window.svg4everybody),
};
},
@@ -594,6 +594,7 @@ const controls = {
},
// Get current selected caption language
+ // TODO: rework this to user the getter in the API?
getLanguage() {
if (!this.supported.ui) {
return null;
@@ -606,6 +607,7 @@ const controls = {
if (this.captions.enabled) {
return this.captions.currentTrack.label;
}
+
return this.config.i18n.disabled;
},
@@ -1160,18 +1162,18 @@ const controls = {
container = this.config.controls({
id: this.id,
seektime: this.config.seekTime,
+ title: this.config.title,
});
} else {
// Create controls
container = controls.create.call(this, {
id: this.id,
seektime: this.config.seekTime,
- speed: '-',
- // TODO: Get current quality
- quality: '-',
+ speed: this.speed,
+ quality: this.quality,
captions: controls.getLanguage.call(this),
- // TODO: Get loop
- loop: 'None',
+ // TODO: Looping
+ // loop: 'None',
});
}