From e08851a2ccaba84f10cd1a5aea4f5cd38c010fd4 Mon Sep 17 00:00:00 2001 From: Gary Katsevman Date: Wed, 27 Mar 2013 14:35:34 -0400 Subject: [PATCH] Make the Duration Display not display the duration as a negative number --- src/js/controls.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/controls.js b/src/js/controls.js index 7de1e99f9..7902cbbcd 100644 --- a/src/js/controls.js +++ b/src/js/controls.js @@ -436,7 +436,7 @@ vjs.DurationDisplay.prototype.createEl = function(){ this.content = vjs.createEl('div', { className: 'vjs-duration-display', - innerHTML: 'Duration Time ' + '-0:00', // label the duration time for screen reader users + innerHTML: 'Duration Time ' + '0:00', // label the duration time for screen reader users 'aria-live': 'off' // tell screen readers not to automatically read the time as it changes }); @@ -446,7 +446,7 @@ vjs.DurationDisplay.prototype.createEl = function(){ vjs.DurationDisplay.prototype.updateContent = function(){ if (this.player_.duration()) { - this.content.innerHTML = 'Duration Time ' + '-' + vjs.formatTime(this.player_.duration()); // label the duration time for screen reader users + this.content.innerHTML = 'Duration Time ' + vjs.formatTime(this.player_.duration()); // label the duration time for screen reader users } };