﻿function show_movie()
{
    flowplayer("VideoPlace", "/flowplayer/flowplayer-3.2.2.swf", {
        //log: { level: 'debug', filter: 'org.flowplayer.slowmotion.*' },
        // configure the required plugins
        playlist: '/PlayMovie',

        plugins: {
            content: {
                url: '/flowplayer/flowplayer.content-3.2.0.swf',
                height: 30,
                backgroundColor: '#000000',
                display: 'none'
            },

            slowmotion: {
                url: '/flowplayer/flowplayer.slowmotion-3.2.0.swf'
            },

            rtmp: {
                url: '/flowplayer/flowplayer.rtmp-3.2.0.swf'

            },

            controls: {
                // enable tooltips for the buttons
                tooltips: { buttons: true }
            },

            controls: {
                url: '/flowplayer/flowplayer.controls-3.2.1.swf',
                playlist: true
            }

        },

        canvas: {
            // configure background properties
            background: '#000000',

            // remove default canvas gradient
            backgroundGradient: 'none'
        },

        clip: {
            // use the RTMP plugin
            provider: 'rtmp',

            scaling: 'fit'
        },

        onError: function(errorCode, errorMessage)
        {
            var m = this.getPlugin("content");
            m.show();
            m.setHtml('Error loading movie: ' + errorCode);
        },
        showErrors: false
    });
}
function show_movie1()
{
    flowplayer("VideoPlace", "/flowplayer/flowplayer-3.1.5.swf", {
        // clip: { baseUrl: '/test.xml' },
        // playlist is configured from a RSS playlist file
        clip: { scaling: "fit" },
        playlist: '/PlayMovie',
        // show playlist buttons
        plugins: {
            controls: {
                url: '/flowplayer/flowplayer.controls-3.1.5.swf',
                playlist: true
            }
        },
        canvas: {
            // configure background properties
            background: '#000000',

            // remove default canvas gradient
            backgroundGradient: 'none'
        }
    });
}
function set_movie(Url)
{
    flowplayer("Player", "/flowplayer/flowplayer-3.2.2.swf", {
        clip: {
            url: Url,
            autoPlay: true
        },
        plugins: {
            content: {
                // the only required property
                url: '/flowplayer/flowplayer.content-3.2.0.swf',
                height: 30,
                backgroundColor: '#000000',
                display: 'none'
            }
        },
        onError: function(errorCode, errorMessage)
        {
            var m = this.getPlugin("content");
            m.show();
            m.setHtml('Error loading movie: ' + errorCode);
        },
        showErrors: false
    });
}
function open_win(url, width, height)
{
	var left = (screen.availWidth - width) / 2;
	var top = (screen.availHeight - height) / 2;
	var args = "left=" + left + ",top=" + top + ",width=" + width + ",height=" + height + ",status=no, toolbar=no, menubar=no, scrollbars=yes, location=no, resizable=yes";
	return window.open(url, "newwindow", args);
}
