Welcome to the Lectora and CourseMill Forums
If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed.
-
Jumping Time on WMV File and Showing Menus and Images on Top of Videos
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:
<OBJECT id="VIDEO" width="720" height="475"
style="position:absolute; left:0;top:0;"
CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
type="application/x-oleobject">
<PARAM NAME="URL" VALUE="INSERT FILE NAME OR URL HERE">
<PARAM NAME="SendPlayStateChangeEvents" VALUE="True">
<PARAM NAME="AutoStart" VALUE="True">
<PARAM NAME="uiMode" value="full">
<PARAM NAME="PlayCount" value="9999">
<PARAM NAME="WindowlessVideo" value="-1">
<PARAM NAME="wmode" value="opaque">
</OBJECT>
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:
<PARAM NAME="WindowlessVideo" value="-1">
<PARAM NAME="wmode" value="opaque">
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.
-
-
FYI, I think the uiMode settings are "full", "mini", "none" and "invisible". The only difference between full & mini, is that mini is missing the seek bar. Also, add 65 to the height of the video to allow for the controls for all of them except for none when setting the height parameter. Space is still reserved for the controls when using invisible.
Jeff
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
Lectora and CourseMill are registered trademarks of Trivantis Corporation, Camtasia and Snagit are registered trademarks of TechSmith Corporation and
Flypaper is a trademark of Flypaper Studio. Camtasia and Snagit are used with the permission of TechSmith Corporation.
Copyright © 1999-2012 Trivantis Corporation Inc. All rights reserved.