var FlowPlayerConfig =
{
    GetStatic:function (videoUrl, imageUrl) {
        return {
            "clip": {
                "url": videoUrl,
                "autoPlay": false,
                "autoBuffering": true
            },
            "canvas": {
                "background": 'transparent url(' + imageUrl + ') no-repeat',
                "backgroundImage": imageUrl
            },
            "plugins": {
                "controls": {
                    "time": true,
                    "volume": true,
                    "fullscreen": true,
                    "autoHide": 'always'
                }
            },
            "key": FlowPlayerKey
        };
    },

    GetStreaming:function (streamingVideoUrl, pseudoVideoUrl, imageUrl) {
        return FlowPlayerConfig.GetCustomStreaming(streamingVideoUrl, pseudoVideoUrl, imageUrl, FlashMediaRtmpUrl);
    },

    GetCustomStreaming:function (streamingVideoUrl, pseudoVideoUrl, imageUrl, streamingVideoServer) {
        var settings = FlowPlayerConfig.GetStatic(streamingVideoUrl, imageUrl);
        settings["clip"]["provider"] = "influxis";
        settings["clip"]["ipadUrl"] = pseudoVideoUrl;
        settings["plugins"]["influxis"] = { "url": 'flowplayer.rtmp-3.2.3.swf', "netConnectionUrl": streamingVideoServer };
        return settings;
    },

    GetDefault: function(videoUrl, imageUrl) {
        if (FlowPlayerRtmp) {
            return FlowPlayerConfig.GetStreaming(videoUrl, imageUrl);
        } else {
            return FlowPlayerConfig.GetStatic(videoUrl, imageUrl);
        }
    }
};
