/**  * Flowplayer external configuration file.  **/
// --- CONTROLS ---
var skins = {
    defaults: {
        backgroundColor: '#666666',
        buttonColor: '#333333',
        opacity: 0,
        time: false,
        url: '/ps/flowplayer/flowplayer.controls-3.1.2.swf',
        play: true,
        volume: true,
        mute: true,
        time: true,
        stop: false,
        playlist: false,
        fullscreen: true,
        autoHide: 'always',
        hideDelay: 2000,
        // scrubber is a well-known nickname for the timeline/playhead combination         
        scrubber: true
        // you can also use the 'all' flag to disable/enable all controls     
    },

    // setup additional skins here ...
    clean: {
        url: '/ps/flowplayer/flowplayer.controls-3.1.2.swf',
        //url: 'flowplayer/flowplayer.controls-tube-3.1.2.swf',
        progressColor: '#9d1313',
        bufferColor: '#A15B7A',
        timeColor: '#01DAFF',
        volumeSliderColor: '#9d1313',
        height: 25,
        play: true,
        volume: true,
        mute: false,
        time: true,
        stop: true,
        scrubber: true,
        fullscreen: false,
        autoHide: 'always',
        hideDelay: 2000
    },

    none: {
        autoHide: 'always',
        all: false,
        height: 0
    }
}

var conf = {
    // --- CLIPS ---
    
    defaults: {
        autoPlay: false,
        autoBuffering: true,
        bufferLength: 5,
        provider: 'http',
        //provider: 'pseudo', 
        
        // functions are also supported         
        onBegin: function() {
            // make controlbar visible in 4000 seconds             
            this.getControls().fadeIn(4000);
        }
    },
    autoplay: {
        autoPlay: true,
        autoBuffering: true,
        bufferLength: 5,
        provider: 'http'
        //provider: 'pseudo'                 
    },

    // --- PLUGINS ---    
    
    plug_defaults: {
        controls: skins.defaults
    },
    plug_clean: {
        //pseudo: { url: '/ps/flowplayer/flowplayer.pseudostreaming-3.1.2.swf' },
        controls: skins.clean        
    },
    plug_none: {
        controls: skins.none
    },

    // --- PLAY ---   
         
    playoptions: {
        defaults: {
            // all display properties, except the z-index, can be modified in all versions     
            //opacity: 0.8,

            // label text; by default there is no text     
            label: null,

            // label text at end of video clip     
            replayLabel: 'Afspil igen',

            /*  progress indicator - this is shown while video is being loaded.         
                it is always in the same place as the play button.    */
            // how fast progress indicator fades out after video is loaded     
            fadeSpeed: 500

            // how fast buffering animation rotates
            //rotateSpeed: 50
        }        
    }
}