/**  * Flowplayer external configuration file.  **/
// --- CONTROLS ---
var skins = {
    defaults: {
        backgroundColor: '#666666',
        buttonColor: '#333333',
        opacity: 0,
        time: false,
        url: '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: 'flowplayer.controls-3.1.2.swf',
        //url: 'flowplayer/flowplayer.controls-tube-3.1.2.swf',
        progressColor: '#b0d5ee',
        bufferColor: '#2a2a86',
        timeColor: '#ADD5F1',
        durationColor: '#ADD5F1',
        volumeSliderColor: '#2a2a86',
        height: 20,
        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: 3,
        provider: 'http',
        //provider: 'pseudo', 
        
        // functions are also supported         
        onBegin: function() {
            // make controlbar visible in 3000 seconds
            this.getControls().fadeIn(3000);
            this.getPlugin('content').hide();
        }                
    },
    autoplay: {
        autoPlay: true,
        autoBuffering: true,
        bufferLength: 3,
        provider: 'http',
        //provider: 'pseudo',

        // functions are also supported         
        onBegin: function() {
            this.getPlugin('content').hide();
        }                                    
    },

    // --- PLUGINS ---    
    
    plug_defaults: {
        controls: skins.defaults
    },
    plug_clean: {
        //pseudo: { url: 'flowplayer.pseudostreaming-3.1.2.swf' },
        controls: skins.clean
    },
    plug_clean_content: {        
        controls: skins.clean,

        content: {
            url: 'flowplayer.content-3.1.0.swf',
            html: '',
            display: 'none',
            style: {
                p: { 
                    color: '#ffffff', 
                    fontSize: 16,
                    fontWeight: 'bold' 
                    },
                a: { 
                    color: '#ffffff', 
                    fontSize: 16,
                    fontWeight: 'bold' 
                    }
                },
            border: '2px',
            bottom: 23,
            right: 12,            
            width: 84,
            height: 43,
            padding: 10,
            backgroundColor: '#003075',
            opacity: 0.97,
            backgroundGradient: 'low'
        }            
    },    
    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
        }        
    }
}
