FORUMS: list search recent posts

switching 2 video pressing keyboard key

COW Forums : Web Design

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Giuliano Bausanoswitching 2 video pressing keyboard key
by on Nov 6, 2014 at 12:43:10 pm

Hi everybody,
i'm not sure in which group i should ask this question, i guess this one should fit:

have anyone seen this? "http://www.youtube.com/user/HondaVideo?x=cs"

Despite the good idea and the hard cinematic video work, does anyone knows (have idea or suggestion where to look for answers/solution) how to add a video into a website which switch into another video pressing a keyboard key, like that one does, please?

Thank you very much in advance.
Julian.


Return to posts index

Curtis ThompsonRe: switching 2 video pressing keyboard key
by on Nov 6, 2014 at 4:12:36 pm

Hello,

Here's a quick fiddle i made to demonstrate this for you:

http://jsfiddle.net/sitruc/Lqs5tm4x/1/

It uses jquery, but as noted in the comments, that's just for convenience. Also uses HTML5 video, but that's safe enough these days. However you would need to catch older browsers just in case.

Hope that helps!

sitruc


Return to posts index

Giuliano BausanoRe: switching 2 video pressing keyboard key
by on Nov 6, 2014 at 6:16:45 pm

Thank you very, very much i appreciated it a lot,
it is what i was searching for and i didn't found anything on the web before...

actually it looks like an array of video right? which you can cycle through, using your "j" and "k" keys.. awesome..

in that advertising the video allow u to just switch forom one video to the other one, just pressing and realeasing R button.. something like 2 video layers.. am i wrong? what do u think about it? is it very different/hard to do it, please?

Kind regards.


Return to posts index


Curtis ThompsonRe: switching 2 video pressing keyboard key
by on Nov 6, 2014 at 6:46:06 pm

Hello,

Nope - you could easily just only listen to the "r" key (in the example I posted, that'd be the "k" key) and just cycle through them. right now it loops back to the start when you get to the last video, but you could even disable that and just alert the user that they'd reached the last video.

the "j" here just lets you go backwards - it's not necessary to have that.

sitruc


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]