MC Media Player

MC Altair Examples: Single Video File Player

Example 1
 
This is the default player configuration—the only things defined are the video file and preview image. The control panel (CP) is positioned at the bottom of the screen, overlaid on the video at 60% opacity. The CP can be hidden with the small button on the left.
fpFileURL = "vision2004.flv";
fpPreviewImageURL = "vision2004.jpg";
Example 2
 
This example uses a slightly different color scheme. The big play button is larger and more transparent. The CP is positioned below the video screen so there is no overlay. The video file is the same as the first example but this time it is served from a streaming server.
streamingServerURL = "rtmp://example.com/StreamingServer";
fpFileURL = "vision2004.flv";
fpPreviewImageURL = "vision2004.jpg";
playerSize = "480x294";
colorScheme = "437089";
cpPosition = "0x270";
cpBackgroundOpacity = "100";
cpHidePanel = "never";
fpButtonSize = "240x240";
fpButtonOpacity = "20";
playerBackgroundColor = "000000";
videoScreenSize = "480x270";
Example 3
 
This smaller player has a 4x3 aspect ratio. The CP and background color are blue. The CP fades out when the mouse leaves the player (with a 1.5-second delay). The big play button is in the top left corner.
fpFileURL = "sts120-overview.flv";
fpPreviewImageURL = "sts120-overview.jpg";
playerSize = "320x240";
playerBackgroundColor = "000066";
cpBackgroundColor = "66cc";
cpBackgroundColor = "66cc";
cpBackgroundOpacity = "30";
cpHidePanel = "mouseout";
cpHideDelay = "1.5";
fpButtonOpacity = "20";
fpButtonPosition = "-28x-20";
Example 4
 
In this example the CP elements are spread around the video screen, which has been reduced in size. This demonstrates how the various elements can be positioned anywhere within the player.
fpFileURL = "spaceship2.flv";
fpPreviewImageURL = "spaceship2.jpg";
cpCounterPosition = "227x150";
cpFullscreenBtnPosition = "286x108";
cpHidePanel = "never";
cpInfoBtnPosition = "286x121";
cpPlayBtnPosition = "7x65";
cpRepeatBtnPosition = "286x95";
cpScrubberPosition = "38x155";
cpStopBtnPosition = "7x85";
cpVolumeBtnPosition = "277x65";
fpButtonOpacity = "0";
playerSize = "306x170";
playerBackgroundColor = "0";
videoScreenPosition = "30x10";
videoScreenSize = "243x137";
Example 5
 
Getting back to basics, this player shows only the play/pause and stop buttons.
fpFileURL = "shuttle-names.flv";
fpPreviewImageURL = "shuttle-names.jpg";
cpBackgroundColor = "ffffff";
cpCounterPosition = "0x220";
cpFullscreenBtnPosition = "0x220";
cpPlayBtnColor = "9900";
cpStopBtnColor = "990000";
cpHidePanel = "never";
cpInfoBtnPosition = "0x220";
cpRepeatBtnPosition = "0x220";
cpScrubberPosition = "0x220";
cpVolumeBtnPosition = "0x220";
fpButtonOpacity = "0";
playerSize = "240x204";
playerBackgroundColor = "ffffff";
videoScreenSize = "240x180";