Author Archives: Bhaldie

IPlayer FLV Player

IPlayer is a web-base FLV Player, which I created in 2006 for a project done at VDI, it has been modified over the years gaining more functionality. IPlayer was coded originally in Actionscript 1.0, then upgraded to Actionscript 2.0, future versions may look at implementing Actionscript 3.0.

Download IPlayer
File Version Date Downloads
IPlayer_v1.1.zip 1.1 11.11.2008
[downloadcounter(IPlayer_v1.1.zip)]
Installation

To install IPlayer simply put the IPlayer.swf file into a web directory on your server. Then do the same with the IPlayer.js file, they don’t have to be in the same directory for example one could be in the js directory and the other could be in the flash directory the choice is yours. The rest of the files in the download package are source files and example movies, they are not needed to use IPlayer only if you are interested in modifying it.

Using IPlayer

To get IPlayer working is pretty simple, there are a few steps needed to get it working I will go through them now.

Step 1 (Adding Javascript):

Basically in this step we need to add the IPlayer.js file to the HTML page we want to display our movie on. Let’s assume that our IPlayer.js file is located in a fold on the web root called js and your HTML page is located on the web root. Remember this is an example you may change directory names, and locations to suit your needs. Now simply add this code to your page between the HEAD tags:

[code lang=”html4strict”]

[/code] That is it for the step 1, now on to step 2.

Step 2 (Calling js function to load the Player)

Here is where we will implement the player on the HTML page, IPlayer uses a simple javascript function to add the flash object, and it also takes a few parameters to configure the player. Here is the code, copy and paste it between the BODY tags of the HTML page.
[code lang=”html4strict”]
[/code]
The function loadplayer has 7 parameters:

  1. Player Location: This parameter indicates where IPlayer.swf is located, in this example it is located on the web root, but as stated before it can be located anywhere in your web directories e.g. (/flash, /player, /flash/IPlayer…)
  2. Width: The width of the flv file.
  3. Height: The height of the flv file.
  4. Position: Where IPlayer will be placed on the page, values for this are ‘left’, ‘middle’, ‘right’
  5. Background Color: disabled in this version.
  6. Movie: The web directory where the movie is located along with the name of the movie. Once again this value is anywhere you want your flvs to be located, and remember that the path must be relative to the HTML page.
  7. Buffer: The amount of time the Movie will buffer before being able to start playing. In this version of IPlayer the buffer time is always 10, later version will have control of how much buffer time is used.
Step 3: More Functionality

IPlayer also has the ability to reload itself to play another movie, this is done by calling another javascript function called reloadplayer(). The function reloadplayer() is similar to the loadplayer function with less parameters. Below we will implement reloadplayer() using anchor tags.

[code lang=”html4strict”]
Movie 1
Movie 2
[/code]

Here is a description of the parameters used in reloadplayer:

  1. Movie: This is the path to the FLV relative to the HTML page. In the example above a variable was used to represent the path to the movie. You may use a string variable if you want e.g. “movie/move.flv”
  2. Buffer: Same as the loadplayer function 10 is the only acceptable number.
  3. Width: The width of the flv.
  4. Height: The height of the flv.
In Conclusion

That’s it for the walk through, as you can see its pretty easy to implement a simple page with a movie player on it.

The download of IPlayer contains the exact same HTML code used in the above example called example.html, it also includes all the source files as well as 2 flvs for testing purposes.

If there is any other questions please feel free to leave a comment below and I will try and help out to the best of my ability.




Collision Investigation Skid Marks

This series of lessons contains animations and simulations designed to teach police officers how to estimate a vehicle’s speed from four different types of skid marks.

Each lesson begins with a tutorial and a 3D movie showing a collision and the type of skid mark it produces. A second movie shows how the police officer should measure and record the length of the skid mark.

Next, a simulation lets the learner explore the effect of different road conditions by generating skid marks for the learner to measure, record and estimate the vehicle’s speed.

The final module in each lesson provides police officers with a math tool to apply the appropriate formula to estimate a vehicle’s speed from skid marks.

These materials were produced for the Justice Knowledge Network, a five-year research and development project to develop e-learning for Canadian police forces.

Suspect Apprehension Pursuit

SAP is a basic refresher-training course that focuses on pursuit regulations and techniques based upon the Ontario Police Service Act’s Suspect Apprehension Pursuits Regulation. It provides a review of basic pursuit training, current pursuit regulations and provides an overview of various pursuit situations.

The course consists of eight lessons, most of which are presented as tutorials followed by practice quizzes to test the students’ understanding of the lesson. Two lessons also contain animated movies that illustrate various techniques officers use to pursue and stop a vehicle.

The regulation itself is presented as a missing-word game where students gain or lose points depending on their understanding of the regulation. This is done so as to encourage the students to read the regulation carefully.

The course concludes with a final exam that provides students with a self-test of their knowledge. The exam can be repeated as often as desired, each time with some different questions randomly selected from the lesson quizzes.

This course was produced for the Justice Knowledge Network, a five-year research and development project to develop e-learning for Canadian police forces.

Transfusion Medicine Online Learning

The object of this educational research project was to determine if a case-based, self-directed e-learning module could effectively supplement core learning objectives in the health sciences program. Our partner was the Faculty of Health Sciences of the McMaster University.

The VDI team worked with Doctors Anthony Levinson, Sarah Garside, and Kathryn Webert from McMaster to create a web-based e-learning course to teach principles of transfusion medicine. This is an interdisciplinary topic that frequently “slips through the cracks” of the curriculum.

The project integrated elements of learning theory and instructional design that were consistent with new MD curriculum goals. These included:

  • Literature search and expert consensus to identify content objectives and core concepts.
  • An e-tutor to promote guided discovery within a tutorial mode.
  • An interactive interface to promote active learning.
  • Pre-tests to orient learners and measure their prior learning as well as measures of their confidence.
  • A problem-based/case-based approach.
  • Interactive elements such as clinical pearls and key facts.
  • Animations of key concepts and mechanisms.
  • Mini-cases to buttress learning through elements of deliberate and mixed practice.
  • Practical clinical issues to aid integration into practice (e.g. Writing orders, obtaining informed consent).
  • Post-tests for self-evaluation of the learner’s new knowledge and level of confidence in that knowledge.
  • Funding for this research project was partly supported by an unrestricted educational grant from Bayer Healthcare.

Fetal Alcohol Syndrome Visualization

FAS was a project I worked on at VDI. We collaborated with McMaster University on a Fetal Alcohol Syndrome visualization, which demonstrated the subtle changes in an embryo affected by FAS

What is FAS

Prenatal exposure to alcohol can cause a range of disorders, known as fetal alcohol spectrum disorders (FASDs). One of the most severe effects of drinking during pregnancy is fetal alcohol syndrome (FAS). FAS is one of the leading known preventable causes of mental retardation and birth defects. If a woman drinks alcohol during her pregnancy, her baby can be born with FAS, a lifelong condition that causes physical and mental disabilities. FAS is characterized by abnormal facial features, growth deficiencies, and central nervous system (CNS) problems. People with FAS might have problems with learning, memory, attention span, communication, vision, hearing, or a combination of these. These problems often lead to difficulties in school and problems getting along with others. FAS is a permanent condition. It affects every aspect of an individual’s life and the lives of his or her family.

Fetal alcohol spectrum disorders (FASDs) is an umbrella term describing the range of effects that can occur in an individual whose mother drank alcohol during pregnancy. These effects include physical, mental, behavioral, and/or learning disabilities with possible lifelong implications. The term FASDs is not intended for use as a clinical diagnosis.

FASDs include FAS as well as other conditions in which individuals have some, but not all, of the clinical signs of FAS. Three terms often used are fetal alcohol effects (FAE), alcohol-related neurodevelopmental disorder (ARND), and alcohol-related birth defects (ARBD). The term FAE has been used to describe behavioral and cognitive problems in children who were prenatally exposed to alcohol, but who do not have all of the typical diagnostic features of FAS. In 1996, the Institute of Medicine (IOM) replaced FAE with the terms ARND and ARBD. Children with ARND might have functional or mental problems linked to prenatal alcohol exposure. These include behavioral or cognitive abnormalities or a combination of both. Children with ARBD might have problems with the heart, kidneys, bones, and/or hearing.

All FASDs are 100% preventable-if a woman does not drink alcohol while she is pregnant.