﻿function startPlayer(movieurl) {
    $f("player", { src: 'flash/flowplayer-3.1.5.swf', wmode: 'transparent' }, {
        clip: {
            url: movieurl,
            autoPlay: true,
            scaling: 'fit'
        },

        plugins: {
            // default controls with the same background color as the page background
            controls: {

                // tooltips configuration 
                tooltips: {

                    // enable english tooltips on all buttons 
                    buttons: true,

                    // customized texts for buttons 
                    play: 'Afspelen',
                    pause: 'Pauze',
                    fullscreen: 'Volledig scherm',
                    fullscreenExit: 'Terug naar pagina',
                    mute: 'Geluid uit',
                    unmute: 'Geluid aan'                    
                },

                // background color for all tooltips 
                tooltipColor: '#fccf0e',

                // text color 
                tooltipTextColor: '#5b2381',

                backgroundColor: '#ffffff',
                backgroundGradient: 'none',
                all: false,
                play: true,
                stop: true,
                scrubber: true,
                mute: true,
                fullscreen: true,
                previous: false,
                next: false,
                height: 30,
                buttonColor: '#009ee0',
                buttonOverColor: '#fccf0e',
                progressColor: '#009ee0',
                bufferColor: '#5b2381'
            },

            // time display positioned into upper right corner
            time: {
                url: 'flash/flowplayer.controls-3.1.5.swf',
                top: 0,
                backgroundGradient: 'none',
                backgroundColor: 'transparent',
                buttonColor: '#009ee0',
                all: false,
                time: false,
                height: 40,
                right: 30,
                width: 100
            }
        },

        // canvas coloring and custom gradient setting
        canvas: {
            backgroundColor: '#000000',
            backgroundGradient: [0.1, 0]
        }


    });
}
