You can do this with JavaScript.
Basically, you trap any clicks on the video element, look at their x/y offset from the video itself, and use that to calculate the frame that the video should move to. You’re going to want to control the video’s currentTime attribute.
Here’s a very naive example (no fallbacks for the various browsers, only tested in Safari): Video
View the page source to see how it works. There’s a video, set to not play. Below that, there’s a Prototype JavaScript observer function that listens for each click on the video element. When it “hears” one, it takes the offsetX of the click event, and cross-multiplies it with the width of the video and the duration of the video to come up with the proper frame to show. This value is passed to the currentTime attribute (which is a combination getter/setter in OO programming parlance) and the movie jumps to that frame. Commented out below that line is the command to play the movie. If you uncomment that line, you will see the movie start playing from wherever you clicked.
Walter
On Apr 18, 2014, at 11:25 PM, tedg wrote:
I have a very wide and short video as mp4., about 15 seconds.
I would like to use this video as its own scrubber. That is, say the video is 1000p wide. (It is actually 1700)
Then if the user puts the cursor at 800p, the film would be advanced to .8 of its length. There has to be an easy way to do this, even in FWP.
https://s3-us-west-2.amazonaws.com/tedgimages/blog/Strip+Animation.mp4
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options