Electric Type

Multimedia

About Us

News

Help

Active Movie Control in Two Easy Steps

Page 5 — Step 1: Concludes

Next, there are the parameters that control which elements of the user interface are visible:

    
    
    <PARAM NAME="ShowDisplay" VALUE="-1">
    <PARAM NAME="ShowControls" VALUE="-1">
    <PARAM NAME="ShowPositionControls" VALUE="0">
    <PARAM NAME="ShowSelectionControls" VALUE="0">
    <PARAM NAME="ShowTracker" VALUE="-1">
    <PARAM NAME="MovieWindowSize" VALUE="0">
    <PARAM NAME="FullScreenMode" VALUE="0">
    <PARAM NAME="MovieWindowWidth" VALUE="700">
    <PARAM NAME="MovieWindowHeight" VALUE="500">
    <PARAM NAME="Appearance" VALUE="1">
    <PARAM NAME="BorderStyle" VALUE="1">
    <PARAM NAME="DisplayForeColor" VALUE="16777215">
    <PARAM NAME="DisplayBackColor" VALUE="0">
    <PARAM NAME="EnableContextMenu" VALUE="-1">
    <PARAM NAME="EnablePositionControls" VALUE="-1">
    <PARAM NAME="EnableSelectionControls" VALUE="-1">
    <PARAM NAME="EnableTracker" VALUE="-1">
    <PARAM NAME="AllowHideDisplay" VALUE="-1">
    <PARAM NAME="AllowHideControls" VALUE="-1">
    <PARAM NAME="AllowChangeDisplayMode" VALUE="-1">

Many elements will prove to be self-evident, although the difference between, say, ShowSelectionControls and EnableSelectionControls might seem a bit dodgy at first. The difference there is that showing something only makes it visible, while enabling it makes it useful (the caveat being that no UI element is going to be useful if you can't see it). Any parameter that begins with "Allow" signifies whether or not the end-user can adjust the UI for that element. Parameters that require Boolean values take -1 to mean true and 0 to mean false for some reason. Although I haven't really run in to any problems using 1 as true, I would recommend adhering to the party line as a safety precaution.

The next set of groupings is more straightforward and directly affects the media involved rather than just the user-interface elements:


    <PARAM NAME="AutoStart" VALUE="0">
    <PARAM NAME="AutoRewind" VALUE="-1">
    <PARAM NAME="PlayCount" VALUE="1">
    <PARAM NAME="SelectionStart" VALUE="0">
    <PARAM NAME="SelectionEnd" VALUE="4.00">
    <PARAM NAME="Balance" VALUE="0">
    <PARAM NAME="Volume" VALUE="0">
    <PARAM NAME="Rate" VALUE="1">
    <PARAM NAME="FileName" VALUE="http://somedomain.com/somepath/tothefile/someSound.mp3">

This bunch is fairly apparent, isn't it? However, there are a few things I should mention. If the PlayCount parameter has a value of 0, it will loop. AutoRewind will set the play head back to the beginning of the media when it reaches the end point, which brings us to SelectionStart and SelectionEnd. These, of course, set the start and end points of the media. However, if you simply want your media to start at the beginning and play through their entirety, simply leave these parameters out. Balance sets the stereo pan of the media if they incorporate sound. The values for Balance fall between -10000 and 10000, with 0 as the center value. Of course, make sure you use a stereo sound source, or else you will find the results rather lackluster. Volume obviously adjusts the relative loudness of the media, with a range of -10000 to 0, where 0 is full-tilt, rattle-your-speakers loud. Rate controls the rate at which the media play back. A value of 1 will play back at the true speed of the media, while values of .2 (the lowest) or 2.2 (the highest) will play back very slowly and very quickly respectively. FileName - now, do I really need to tell you what that does?

next page»


Dynamic HTML  

Frames  

HTML Basics  

Stylesheets  

Tables  

XML  

Javascript  

Database Connections  

Intro To Perl  

HTML 4.0  

User Blogs

Screen Shots

Latest Updates

Contact Us

Valid HTML 4.01!
Valid CSS!

Breadcrumb

© ElectricType
Maintained by My-Hosts.com
Site map | Copyright | Disclaimer
Privacy policy | Acceptable Use Policy
Legal information.