Skip to content

Commit

Permalink
Merge pull request mediaelement#356 from tantalic/138ad82501292d7a2dc…
Browse files Browse the repository at this point in the history
…72c8b0c46513399507c94

Option for markup between current time and duration
  • Loading branch information
johndyer committed Jan 11, 2012
2 parents 38611b9 + 138ad82 commit 837bde0
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 14 deletions.
5 changes: 3 additions & 2 deletions build/mediaelement-and-player.js
Expand Up @@ -2783,7 +2783,8 @@ if (typeof jQuery != 'undefined') {

// options
$.extend(mejs.MepDefaults, {
duration: -1
duration: -1,
timeAndDurationSeparator: ' <span> | </span> '
});


Expand All @@ -2810,7 +2811,7 @@ if (typeof jQuery != 'undefined') {
var t = this;

if (controls.children().last().find('.mejs-currenttime').length > 0) {
$(' <span> | </span> '+
$(t.options.timeAndDurationSeparator +
'<span class="mejs-duration">' +
(t.options.duration > 0 ?
mejs.Utility.secondsToTimeCode(t.options.duration, t.options.alwaysShowHours || t.media.duration > 3600, t.options.showTimecodeFrameCount, t.options.framesPerSecond || 25) :
Expand Down
8 changes: 4 additions & 4 deletions build/mediaelement-and-player.min.js

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

5 changes: 3 additions & 2 deletions build/mediaelementplayer.js
Expand Up @@ -1298,7 +1298,8 @@ if (typeof jQuery != 'undefined') {

// options
$.extend(mejs.MepDefaults, {
duration: -1
duration: -1,
timeAndDurationSeparator: ' <span> | </span> '
});


Expand All @@ -1325,7 +1326,7 @@ if (typeof jQuery != 'undefined') {
var t = this;

if (controls.children().last().find('.mejs-currenttime').length > 0) {
$(' <span> | </span> '+
$(t.options.timeAndDurationSeparator +
'<span class="mejs-duration">' +
(t.options.duration > 0 ?
mejs.Utility.secondsToTimeCode(t.options.duration, t.options.alwaysShowHours || t.media.duration > 3600, t.options.showTimecodeFrameCount, t.options.framesPerSecond || 25) :
Expand Down
8 changes: 4 additions & 4 deletions build/mediaelementplayer.min.js

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

5 changes: 3 additions & 2 deletions src/js/mep-feature-time.js
Expand Up @@ -2,7 +2,8 @@

// options
$.extend(mejs.MepDefaults, {
duration: -1
duration: -1,
timeAndDurationSeparator: ' <span> | </span> '
});


Expand All @@ -29,7 +30,7 @@
var t = this;

if (controls.children().last().find('.mejs-currenttime').length > 0) {
$(' <span> | </span> '+
$(t.options.timeAndDurationSeparator +
'<span class="mejs-duration">' +
(t.options.duration > 0 ?
mejs.Utility.secondsToTimeCode(t.options.duration, t.options.alwaysShowHours || t.media.duration > 3600, t.options.showTimecodeFrameCount, t.options.framesPerSecond || 25) :
Expand Down

0 comments on commit 837bde0

Please sign in to comment.