var VideoControls = {

	// Show the Play/Pause button
	PLAY_PAUSE_CONTROL: 1,

	// Show the video scrubber bar
	SCRUBBER_CONTROL: 2,
	
	// Show the current time and total video duration
	TIME_CONTROL: 4,
	
	// Show the volume control
	VOLUME_CONTROL: 8,
	
	FULLSCREEN_CONTROL: 16,
	
	// Show all controls
	ALL_CONTROLS: 31,
	
	// show just playpause/scrubber/fullscreen
	COMPACT: 19
	
};

var VideoScaleMode = {
	
	// Fit the video to available area, retaining aspect and showing all
	FIT: "fit",
	
	// Fill the available area, retaining aspect but possibly cutting off the edges
	FILL: "fill",
	
	// Show the video at native resolution, centered
	NATURAL: "natural",
	
	// Stretch the video to fill the available area
	STRETCH: "stretch"
};

/*
	@pathToVideo: The path to the video

	@pathToPosterImage: The path to a poster image ( jpg/png ) -- if null, no poster will be displayed

	@videoControlMask: A logical OR of VideoControls params

	@videoScaleMode: One of the scale modes in VideoScaleMode

	@controlBarWidth: If > 0, the control bar will have that width & float at the center bottom of the video. If zero or less,
	                  the control bar will snap to the bottom of the video and fit width.
*/
function VideoPlayerParams(  pathToVideo, pathToPosterImage, videoControlMask, videoScaleMode, controlBarWidth, log_function )
{
	return {
		VideoURL: pathToVideo,
		PosterURL: pathToPosterImage,
		VideoControlMask: videoControlMask,
		VideoScaleMode: videoScaleMode,
		ControlBarWidth: controlBarWidth,
		LogFunction: !!log_function ? log_function : null
	};	
}