﻿
function showFlashPlayer(streamURL, videoFileName) {
     /*
        use flashembed to place flowplayer into HTML element 
        whose id is "example" (below this script tag)
     */
    flashembed("flashPlayerContainer", 
	
        /* 
	        first argument supplies standard Flash parameters. See full list:
	        http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_12701
        */
        {
            id: 'theFlashPlayer',
	        src:'flowplayer/FlowPlayerLight.swf',
	        width: 480,
	        height: 298
        },
		
        /*
	        second argument is Flowplayer specific configuration. See full list:
	        http://flowplayer.org/player/configuration.html
        */

        {config: {   
	        autoPlay: false,
	        autoBuffering: true,
	        controlBarBackgroundColor:'0x333333',
	        initialScale: 'scale',
	        videoFile: videoFileName,
	        streamingServerURL: streamURL,
	        watermarkUrl: 'http://whitman.syr.edu/images/logoBlack.png',
	        showWatermark: 'fullscreen',
	        watermarkLinkUrl: 'http://whitman.syr.edu',
	        menuItems: [false, false, false, false, true, true, false],
	        timeDisplayFontColor: '0xff6600',
	        bufferBarColor1: '0xebebeb',
	        bufferBarColor2: '0xffffff',
	        loop: false
        }} 
    );
}