Tuesday, August 23, 2011

UPK : some interesting settings when publishing to LMS

Hi,

When publishing in UPK to a player package you can alter some interesting parameters. The screen for these parameters looks like this :


If you look at the parameterscreen when publishing to a LMS package a few interesting parameters are missing in this screen. The screen looks like this:


The good and the bad
The good news is that you can set these parameters in the LMS. The bad news is that you have to alter some XML-type file AFTER publishing the package.

The ugly
The ugly thing is navigating to the right file in your published package. The file you are looking for is the file defaultprefs.js. You'll find this file in the directory wherein you published your LMS package. The publishing directory looks like this :

Driveletter:\PUBLISHINGDIRECTORY\Publishing Content\LMS\preferences

and the file defaultprefs.js looks like this:

In this file you'll find some interesting parameters of which I'll touch the following:

UserPrefs.MarqueeColor="FF0000"
The marquee-color is the color used for the Action Area's in the TryIt and SeeIt mode. Normally it's set to Red but you could want it to change to a more appropriate color. This is possible in UPK when publishing to the player package but not when publishing to a LMS package. When you set this by hand you can give it an HTML color.

UserPrefs.TryIt.EnableSkipping=true
When you enable skipping, and it's turned on by default, a user can use Enter in the TryIt mode to advance to the next slide. Mostly I don't want this so I set it to false.

Please note that true and false have NO double quotes

UserPrefs.EnablePreferences=true
With this parameter you give permission to the user to alter some preferences, like marqueecolor and skipping. Set to false you deny this permission.

Please note that true and false have NO double qoutes

UserPrefs.PlayAudio="none"
The playing of audio also invokes a flash-player, which at some sites is not allowed or possible. UPK comes up with some nag screen to let the user set some preferences. I just don't want the user handle these nag screens so I've set this to none. "None" is the XML equivalent of "No Sound " in the export menu.

This variable has nothing to do with "Sound" (sound-quality, High-Medium-Low). Which btw doesn't seem to work in the LMS export.


Al in all my defaultpres.js file looks like this:

/******************************************************************
Copyright © 1998, 2009, Oracle and/or its affiliates. All rights reserved.
******************************************************************/
function SetDefaultPreferences(){UserPrefs.PlayAudio="none";UserPrefs.ShowLeadIn="all";UserPrefs.MarqueeColor="FF0000";UserPrefs.TryIt.EnableSkipping=false;UserPrefs.EnablePreferences=true;UserPrefs.TimeStamp="201107041553";UserPrefs.DoIt.HotKey.Ctrl="L";UserPrefs.DoIt.HotKey.Shift="N";UserPrefs.DoIt.HotKey.Alt="L";UserPrefs.DefaultPlayMode="";}