OpenShot Video Editor  2.0.0
Functions | Variables
playhead.js File Reference

Playhead directives (dragging functionality, etc...) More...

Go to the source code of this file.

Functions

App directive ('tlPlayhead', function(){return{link:function(scope, element, attrs){playhead_y_max=element.position().top;var playhead_top_w=parseInt($(".playhead-top").css("width"))-8.0;scope.playheadOffset=0.0-(playhead_top_w/2.0);element.on('mousemove', function(e){if(e.which==1 &&!scope.playhead_animating){var playhead_seconds=(e.pageX-$("#ruler").offset().left)/scope.pixelsPerSecond;scope.MovePlayhead(playhead_seconds);scope.PreviewFrame(playhead_seconds);}});}};})
 

Variables

var playhead_x_min = null
 
var playhead_y_max = null
 

Detailed Description

Playhead directives (dragging functionality, etc...)

Author
Jonathan Thomas jonat.nosp@m.han@.nosp@m.opens.nosp@m.hot..nosp@m.org
Cody Parker cody@.nosp@m.your.nosp@m.codep.nosp@m.ro.c.nosp@m.om

LICENSE

Copyright (c) 2008-2014 OpenShot Studios, LLC http://www.openshotstudios.com/. This file is part of OpenShot Video Editor, an open-source project dedicated to delivering high quality video editing and animation solutions to the world. For more information visit http://www.openshot.org/.

OpenShot Video Editor is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

OpenShot Video Editor is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with OpenShot Library. If not, see http://www.gnu.org/licenses/.

Definition in file playhead.js.

Function Documentation

App directive ( 'tlPlayhead'  ,
function(){return{link:function(scope, element, attrs){playhead_y_max=element.position().top;var playhead_top_w=parseInt($(".playhead-top").css("width"))-8.0;scope.playheadOffset=0.0-(playhead_top_w/2.0);element.on('mousemove', function(e){if(e.which==1 &&!scope.playhead_animating){var playhead_seconds=(e.pageX-$("#ruler").offset().left)/scope.pixelsPerSecond;scope.MovePlayhead(playhead_seconds);scope.PreviewFrame(playhead_seconds);}});}};}   
)

Variable Documentation

var playhead_x_min = null

Definition at line 32 of file playhead.js.

var playhead_y_max = null

Definition at line 31 of file playhead.js.