Skip to content

Commit

Permalink
Event fix
Browse files Browse the repository at this point in the history
  • Loading branch information
prochor666 committed Sep 29, 2016
1 parent 55773db commit a8e1c51
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
5 changes: 2 additions & 3 deletions dist/js/julia-player.js
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,6 @@ Julia.prototype._Ui = function(origin)
origin.env.model.toolbar.hide();
origin.env.model.buttons.bigPlay.hide();
origin.Ui.state(origin.env.model.preloader, '', 'on');

origin.env.instance.insertAfter(origin.env.element);

origin.env.fullscreenFrame = document.querySelector('#julia-player-'+origin.env.ID);
Expand Down Expand Up @@ -1176,10 +1175,10 @@ Julia.prototype._Events = function(origin)
// Video position
origin.env.api.ontimeupdate = function(e)
{
currentTimeReadable = origin.Timecode.toHuman( origin.env.api.currentTime.toFixed(2) );

if(origin.env.seeking === false)
{
currentTimeReadable = origin.Timecode.toHuman( origin.env.api.currentTime.toFixed(2) );

origin.env.model.sliders.progress.update( origin.Timecode.toPercents( origin.env.api.currentTime ) );

origin.Ui.panel(
Expand Down
2 changes: 1 addition & 1 deletion dist/js/julia-player.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/js/julia-events.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,10 @@ Julia.prototype._Events = function(origin)
// Video position
origin.env.api.ontimeupdate = function(e)
{
currentTimeReadable = origin.Timecode.toHuman( origin.env.api.currentTime.toFixed(2) );

if(origin.env.seeking === false)
{
currentTimeReadable = origin.Timecode.toHuman( origin.env.api.currentTime.toFixed(2) );

origin.env.model.sliders.progress.update( origin.Timecode.toPercents( origin.env.api.currentTime ) );

origin.Ui.panel(
Expand Down
1 change: 0 additions & 1 deletion src/js/julia-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ Julia.prototype._Ui = function(origin)
origin.env.model.toolbar.hide();
origin.env.model.buttons.bigPlay.hide();
origin.Ui.state(origin.env.model.preloader, '', 'on');

origin.env.instance.insertAfter(origin.env.element);

origin.env.fullscreenFrame = document.querySelector('#julia-player-'+origin.env.ID);
Expand Down

0 comments on commit a8e1c51

Please sign in to comment.