if (typeof ews == "undefined") ews = {}; if (typeof ews.VideoBlock == "undefined") ews.VideoBlock = {}; // function callFlowPlayer(playerId, videoUri, autoPlay, colorFrame, colorBackground, colorControlbar, scaleMode, splashImageLocation) { /*ews.VideoBlock.CallFlowPlayer = function(playerId, videoUri, autoPlay, colorFrame, colorBackground, colorControlbar, scaleMode, splashImageLocation) { var oPlayList = []; var oControls = {}; if (colorFrame.length > 1 && colorBackground.length > 1 && colorControlbar.length > 1) { oControls = { timeBgColor: colorBackground, volumeSliderGradient: 'none', backgroundGradient: [0.6,0.3,0,0,0], sliderColor: colorBackground, progressColor: colorBackground, bufferColor: colorBackground, progressGradient: 'medium', tooltipTextColor: colorControlbar, tooltipColor: colorBackground, buttonOverColor: '#728B94', borderRadius: '0px', sliderGradient: 'none', timeColor: colorControlbar, durationColor: colorControlbar, volumeSliderColor: colorControlbar, bufferGradient: 'none', buttonColor: colorControlbar, backgroundColor: colorFrame, height: 24, opacity: 1.0 }; } if (typeof(splashImageLocation) != 'undefined') { oPlayList[0] = { url: splashImageLocation, scaling: scaleMode }; //used to be scaling: 'orig' } oPlayList[oPlayList.length] = { url: videoUri, autoPlay: autoPlay, scaling: scaleMode, //{ src:'../FlowPlayerDark.swf', width: 640, height: 400 }, // video will be buffered when splash screen is visible autoBuffering: true }; flowplayer(playerId, { src: '/blocks/videoblock/flowplayer-3.2.7.swf', wmode: 'transparent' }, { //Note the transparent setting causes this not to work in firefox for now (should be fixed shortly) // here is our playlist with two clips playlist: oPlayList, onMouseOver: function() { this.getControls().fadeIn(); }, // you can specify milliseconds how long the fading lasts onMouseOut: function() { this.getControls().fadeOut(600); }, // make screen take all available space screen: { bottom: 0 }, //canvas: {backgroundColor: "#46471a"}, plugins: { controls: oControls } }); }*/ ews.VideoBlock.CallFlowPlayer = function(playerId, videoUri, autoPlay, scrollable, verticalScroll, colorFrame, colorBackground, colorControlbar, scaleMode, splashImageLocation) { //setup scrolling for the playlist elements if (scrollable) $("#pl_" + playerId).scrollable({ circular: false, items:'div.clips', vertical:verticalScroll, next:'a.next', prev:'a.prev' }); // setup player player = $f(playerId, {src: '/blocks/videoblock/flowplayer-3.2.7.swf', wmode: 'opaque'}, { clip: { autoPlay: true, scaling: scaleMode //{ src:'../FlowPlayerDark.swf', width: 640, height: 400 }, // video will be buffered when splash screen is visible //autoBuffering: true } // the iPad plugin and the playlist plugin }).ipad().playlist("#entries_" + playerId); //player.setPlaylist()[0].url = '/files/The Simpsons Movie - Trailer.mp4'; }; if (typeof Sys != "undefined" && Sys && Sys.Application) { Sys.Application.notifyScriptLoaded(); }