﻿function startPlayer(movieurl) {
    $f("player", { src: 'flash/flowplayer-3.1.5.swf', wmode: 'transparent' }, {
        clip: {
            url: movieurl,
            autoPlay: true
        },

        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: '#666666',

                // text color 
                tooltipTextColor: '#ffffff',

                backgroundColor: '',
                backgroundGradient: 'none',
                all: false,
                play: true,
                stop: true,
                scrubber: true,
                mute: true,
                fullscreen: true,
                previous: false,
                next: false,
                height: 30,
                buttonColor: '#451053',
                buttonOverColor: '#666666',
                progressColor: '#451053',
                bufferColor: '#000000'
            },

            // time display positioned into upper right corner
            time: {
                url: 'flash/flowplayer.controls-3.1.5.swf',
                top: 0,
                backgroundGradient: 'none',
                backgroundColor: 'transparent',
                buttonColor: '#451053',
                all: false,
                time: false,
                height: 40,
                right: 30,
                width: 100
            }
        },

        // canvas coloring and custom gradient setting
        canvas: {
            backgroundColor: '#451053',
            backgroundGradient: [0.1, 0]
        }


    });
}
