Starting / stopping video while toggling its visibility

Hi everyone,


The setup is like this: one video clip which is initially hidden.

I've got a button to toggle the video between visible/hidden states.


The button action:

- Mouse Click --> Toggle Show / Hide (the video)


The video actions:

- OnHide --> Pause

- OnShow --> Play


So the video is expected to start playing when gets visible and stop when becomes hidden.


It works on F10/Run Mode, F11/Preview Mode but absolutely useless in F9 / Preview in Browser Mode in any browser. And that is the case on the production server.


Any experience or tip on how to work around this problem?


Thanks: Gyorgy

Discussion (1)

I was able to get it working in both modes...although a two button setup might be simpler, here's how to do it with one button.


Make sure the video is Initially Hidden.

The button action:

- Mouse Click --undefinedToggle Play (Video) Set a delay of .3 seconds. Sometimes Lectora does actions so fast they don't work properly.


No Video actions

Discussions have been disabled for this post