Buttons, Triggers and Video

Nov 13, 2012

Hi All

I'm looking for a solution to a problem that I just can't work out,

I have a button that I have set to a down state once clicked, if I let go of the button it returns to it's normal state.  I also want to play a video when the button is in the down state and be paused as the button is let go. (the video is of a door opening if the button is pressed, if it is let go it needs to stop)

Does anyone have any ideas?

Thanks

14 Replies
Brian Allen

I've run into this same problem before as well.

It works beautifully, one time.  Press the button down, video plays, release the button and video pauses.  After that it seems like the video does not respond to the down state of the button.  

It seems like it would be (and should be) simple to set button state down = play, button state normal = pause, but I haven't been able to get it to work.

Brian Allen

Luke Dart said:

Thanks, I tried that but the video doesn't pause.

Any other thoughts?


Luke, I've been able to get it to work one time by removing the visited state of the button and just using button state = normal.  Set the pause trigger on the video (pause media if button state = normal).  Add the down state trigger to the button.

Brian Allen

Gerry Wasiluk said:

How about with a mouseover?


Great suggestion Gerry.  Using a play media when mouse hovered over button trigger makes the video play everytime the mouse is over the button, and stops the video every time the mouse moves away from the button.

The only pain is that the video restarts from the beginning each time the mouse moves back over the button, but if this is what you were aiming for then this would work.

Don't know why I didn't think of using that before - great suggestion Gerry!

Luke Dart

Hi Brian, I also have been able to get it to work once by adding a diffferent state unfortinuatly for what I need is a  natural button feel by pressing it down and the video will play, releasing the button pauses it and continuing in that fashion.

Gerry, Thanks but a mouse over won't work for the reasons above, we need to get the most realistic feel possible.

Thanks for taking the time in helping me out, I have a couple more ideas to try now I have it working once but please keep  thinking

Luke Dart

If I can clarify, the video is of some doors opening while the button is pressed, if it is released the doors stop...you have to keep holding the button down for the doors to open fully.

But you have given me a Plan B which never crossed my mind so thanks

Brian Allen said:

Gerry Wasiluk said:

How about with a mouseover?


Great suggestion Gerry.  Using a play media when mouse hovered over button trigger makes the video play everytime the mouse is over the button, and stops the video every time the mouse moves away from the button.

The only pain is that the video restarts from the beginning each time the mouse moves back over the button, but if this is what you were aiming for then this would work.

Don't know why I didn't think of using that before - great suggestion Gerry!

Luke Dart

Jerson campos said:

I've actually had issues with the default button states.  If something in the slide requires a button to be in a certain state and the default states are used then all sorts of weird stuff happens or the trigger doesn't work. I usually just remove the states and create my own uniquely named states.


Interesting, thanks for the tip, I'll give it a go

This discussion is closed. You can start a new discussion or contact Articulate Support.