
By using the XIMPEL configuration XML file you can change various settings for your XIMPEL application, without having to recompile the whole application. You only have to make the changes in the configuration file and restart the XIMPEL application. The default name for the configuration file is "ximpelConfig.xml".
For XimpelPlayer, you can configure the following parameters:
- playlist: Location of the playlist, relative to the location of XimpelPlayer. [Default value: ""]
- assetsDir: Directory where overlay images are stored, relative to the location of XimpelPlayer. [Default value: ""]
- videoDir: Directory where local videos are stored, relative to the location of XimpelPlayer. [Default value: ""]
- extraQuestionDuration: Duration in seconds for extra questions. [Default value: 6]
- scoreMultiplier: The factor which the score is multiplied with. It can be used to create a game-like score. [Default value: 1000]
- extraQuestionScore: The added score for each correctly answered extra question, on a scale from 0.0 to 1.0. [Default value: 0.5]
All parameters are optional, so you are not obliged to use them all. Furthermore, these parameters can also be changed in the configuration file when you create a custom XIMPEL application.
The appearance and labels of ximpelApp can be changed by configuring the following parameters:
- scoreMessages
- scoreThreshold: Rule for determining the evaluation message.
- language
- questionLabel [Default value: "Question"]
- subjectLabel [Default value: "Subject"]
- scoreLabel [Default value: "Score"]
- extraQuestionRightLabel [Default value: "Right!"]
- extraQuestionWrongLabel [Default value: "Wrong!"]
- extraSegmentLabel [Default value: "Extra footage!"]
- nextButtonLabel [Default value: "Next"]
- playButtonLabel [Default value: "Play"]
- playAgainButtonLabel [Default value: "Play again"]
- titleScreenImage: Path to titel screen image. Uses assetsDir if set. [Default value: embedded dragonslair.jpg]
- titleScreenHeader [Default value: "XIMPEL Application"]
- skipInstructionScreen [Default value: false]
- instructionScreenHeader [Default value: "Instructions Interactive Video Application"]
- instructionScreenHTMLText: Instruction screen text. HTML formatting is allowed.
- evaluationScreenHeader [Default value: "Your storyline"]
- evaluationScreenScoreLabel [Default value: "Your score"]
- evaluationScreenSubjectLabel [Default value: "Played subjects"]
Example 1: ximpelApp configuration file with XimpelPlayer configuration
<ximpel> <settings> <playlist>xml/fast.xml</playlist> <assetsDir>images/</assetsDir> <videoDir>video/</videoDir> <extraQuestionDuration>8</extraQuestionDuration> <scoreMultiplier>1000</scoreMultiplier> <extraQuestionScore>0.5</extraQuestionScore> </settings> <scoreMessages> <scoreThreshold upperlimit="1" message="That's really bad..."/> <scoreThreshold underlimit="3" message="Well done!"/> <scoreThreshold underlimit="1" upperlimit="2" message="Thanks for playing! Try again."/> </scoreMessages> <language> <questionLabel>Question</questionLabel> <subjectLabel>Subject</subjectLabel> <scoreLabel>Score</scoreLabel> <extraQuestionRightLabel>Right!</extraQuestionRightLabel> <extraQuestionWrongLabel>Wrong!</extraQuestionWrongLabel> <extraSegmentLabel>Extra footage!</extraSegmentLabel> <nextButtonLabel>Next</nextButtonLabel> <playButtonLabel>Play</playButtonLabel> <playAgainButtonLabel>Play again</playAgainButtonLabel> </language> <titleScreenImage>title.jpg</titleScreenImage> <titleScreenHeader>XIMPEL Application</titleScreenHeader> <instructionScreenHeader> Instructions Interactive Video Application </instructionScreenHeader> <instructionScreenHTMLText> <UL> <LI>Watch the video</LI> <LI>Make choices by clicking in the video</LI> <LI>Find hidden segments to score bonus points</LI> <LI>Answer extra question correctly for more bonus points</LI> </UL> </instructionScreenHTMLText> <evaluationScreenHeader>Your storyline</evaluationScreenHeader> <evaluationScreenScoreLabel>Your score</evaluationScreenScoreLabel> <evaluationScreenSubjectLabel>Played subjects</evaluationScreenSubjectLabel> </ximpel>
Example 2: custom XIMPEL application configuration file with only XimpelPlayer configuration
<ximpel> <settings> <playlist>mydir/custom.xml</playlist> <videoDir>vids/</videoDir> </settings> </ximpel>