Video Play Button

If you are using the built in video player that comes with lectora, you have to get creative on how thats done using a button that's placed over the top of the lectora video.

This is how I have done it many times before...


Set your video properties to Initially Visible and display controller, and do not set Auto Start to true

Edit the video to add an event at the very end that will trigger an event.. (Usually I name it VideoEnd)

Take a screenshot of the video playing at the 0:01 time and crop it to exact dimensions of video

Create a button that uses the screenshot as each button state, select "always on top" for now and place it to fit over the actual video that will play. Since the dimensions are exactly the same it should fit over it nicely

Create a group named "play video" that has two actions. (Hide Button and Play video)

Create a group called "stop video" that has one action (Show Button)

Add OnClick to the button that runs the action group "play video"

Go to the video properties, then events and make the event you created called "VideoEnd" trigger the run action group "stop video"


The video player that Trivantis uses for the media player has some other flash variables that could handle this natively, but I'm not sure why we don't have access to them through the properties of the video. image (undefined): location of a preview image; shown in display and playlist. displayclick (play): what to do when one clicks the display. Can be play, link, fullscreen, none, mute, next. When set to none, the handcursor is also not shown.

Discussions have been disabled for this post