Jumping Time on WMV File and Showing Menus and Images on Top of Videos

sirwise23
sirwise23 Community Member Posts: 442 ☆ Roadie ☆
I had this up in General, but I figured it would be good for tips and tricks.



This code lets you jump to points in a video.



You can't use the standard Lectora Video object. Instead insert a HTML file. I usualy set the HTML to pull an external text file. Make it easier to edit.



The text file should contain:




style="position:absolute; left:0;top:0;"

CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"

type="application/x-oleobject">























NOTES:

URL Value: Can point to a URL or local path

Change the width and height to the video size plus extra height to account for ui. Play around with it.

uiMode can be None, Half, and Full. Play with them a bit to see what you need.

Notice the object ID is set as video. That is needed for the controls



Next thing to do is create a clickable object in lectora, rather a buton, text, image... whatever you can set an action too.

After that add an on click action, with a Go To, Web Address.



The Web address should read:

javascript:VIDEO.Controls.currentPosition=60



The position is read in seconds, so the above line would take you to 1 minute in.



Also, the lines above:







Lets you put items on top of a WMV file. You won't have to worry about those menus going in back of a playing video any more.

Comments

  • sirwise23
    sirwise23 Community Member Posts: 442 ☆ Roadie ☆
    The play button doesn't do that but you can make it happen on your own using the info above. You can set actions on the submit button or on your own button that jumps to different parts of a video depending on your answer. I have videos that pause and won't start playing again until you answer the question that pops up.
Sign In or Register to comment.

So You Wanna Be An eLearning ROCKSTAR?

We're all fans of eLearning here! Want to become an eLearning ROCKSTAR? Just click on one of the buttons below to start your rocking journey!