// RICH MEDIA PROJECT : JAVASCRIPT PHP FLV PLAYER v2.0.0 // DETECT FLASH PLAYER VERSION FOR FULLSCREEN EXPERIENCE (from Flash Player v9.0.28) detectFlashPlayer=true; // fullScreenFunction : if false, fullscreen mode won't be available fullScreenFunction=true; // PHP SCRIPT PATH // Path of the PHP provider script; path relative to the "RMP_Player.swf" file or absolute path (movies should be located in the same folder) phpPath="../dovideo.php"; // movieName without extension; see "bandwidth detection" section if you want to use movies with different bitrates. movieName="alitaliacargo_MD11_EI-UPE_20080510_PSA_04R.flv"; // BEHAVIOURS bufferTime=1; volume=100; // If autostart=false, the movie will be paused at start. autoStart=true; // endBehaviour : behaviour when the movie ends. // endBehaviour="Stop" | endBehaviour="Loop" endBehaviour="Stop"; // endFullScreenBackToNormal : if true, return from full screen to normal mode when the movie ends endFullScreenBackToNormal=true; // endJavascriptFunction : your custom javascript function that will be called at the end of the movie endJavascriptFunction=""; // CloseConnect: If true, the Nestream connection will be closed when stop button is pressed. stopCloseConnect=true; // BANDWIDTH DETECTION // Set differentVersions to true to enable bandwidth detection differentVersions=false; // Define the different bitrates values in kbps (audio+video bitrate); // When the detected bandwidth equals of exceeds these values, the associated movie will be selected version_hi_value=800; version_medium_value=400; version_low_value=200; // If differentVersions=false: upload a single version of a movie to your server : [movieName].flv // if differentVersions=true: upload multiple versions (ex: low, med, hi) of a movie to your server : // [movieName][version_hi_extension].flv // [movieName][version_medium_extension].flv // [movieName][version_low_extension].flv // Set the movie name extension that is associated with each different bitrate version // Use format of "_text" for each version name; this value will be appended to the movieName version_hi_extension="_800"; version_medium_extension="_400"; version_low_extension="_200"; // PICTURES // Set pictures parameters to true to display a picture at start (if autostart=false) and when the movie is stopped. // The picture has to be a jpeg file and must be named exactly the same as the movieName parameter. // If movieName="myVideo", the player will try to load myVideo.jpg file. pictures=false; // The pictures must be located in the pictures folder and path listed here. picturesFolder="/myFlash/pictures"; //Set a background color for the picture picturesBackgroundColor="#000000"; picturesKeepAspectRatio=false; // Set "picturesKeepAspectRatioFullScreen" to true to prevent distortion during full screen mode picturesKeepAspectRatioFullScreen=true; // CLICK ON SCREEN // Set following to true to use hand cursor to indicate the screen is clickable clickOnScreen_useHandCursor=true; // set singleClickPlayPause to true to pause or resume the playback with a single click anywhere on the screen singleClickPlayPause=true; // Set to true to show a play button on screen, screenPlayButton=true; // Set the alpha transparency (low value is most transparent) screenPlayButtonAlpha=80; // set doubleClickListener to true to go full screen with a double click doubleClickListener=true; // VIDEO QUALITY // Smoothing and bestQuality options // Note: enabling these options will increase CPU usage. Users with low-powered computers // or that have multiple applications open may have viewing problems. Use these with caution. bestQuality=false; smoothing=true; smoothingFullScreen=false; deblocking=0; // PLAYER'S PROPERTIES playerWidth=720; // playerHeight includes the size of the control bar (15 pixels) when in NORMAL MODE playerHeight=421; // autoSize="Movie" or autoSize="Off". Set autoSize to "Movie" to make player fit the // movie and to keep the aspect ratio. autoSize="Off"; // autoSizeFullScreen="Movie" maintains the movie's aspect ratio during full screen mode; // autoSizeFullScreen="Off" allows the movie to distort and fill the screen in full screen mode; autoSizeFullScreen="Movie"; // NORMAL MODE // Player parameters: colors and positions // playerHeight includes the size of the control bar (15 pixels) playerColor="#222222"; barColor="#FFFFFF"; playbarColor="#E2F9D9"; screenBorder=false; screenBorderColor="#FFFFFF"; buttonsColor="#FFFFFF"; timeColor="#FFFFFF"; backgroundColor="#000000"; backgroundAlpha=100; //controlsY : space between the bottom of the screen and the control bar. controlsY=10; // FULL SCREEN MODE // Enables you to change player controls colors, dimensions, and positions during full screen mode // ControlsYFullScreen, y position from the bottom of the screen controlsYFullScreen=15; // Set controlsWidthFullScreen=0 to fit with the width of the screen controlsWidthFullScreen=500; playerColorFullScreen="#222222"; barColorFullScreen="#FFFFFF"; playbarColorFullScreen="#E2F9D9"; buttonsColorFullScreen="#FFFFFF"; timeColorFullScreen="#FFFFFF"; backgroundColorFullScreen="#000000"; backgroundAlphaFullScreen=100; // CONTROLS // controls="Hide" | controls="Autohide" | controls="Show" controls="Show"; controlsFullScreen="Autohide"; // Enable buttons: true | false stopButton=true; stopButtonFirst=true; rewindFastForwardButtons=true; // rewind and fast forward intervals (rw_ff_interval) in seconds rw_ff_interval=4; // Enable volume slider: true | false volumeSlider=true; // Enable timecode display: true | false showTimecode=true; controlsBarPress=true; // Set time display format: timeFormat="mm:ss" | timeFormat="hh:mm:ss" | timeFormat="mm:ss|duration" | timeFormat="hh:mm:ss|duration" timeFormat="mm:ss|duration"; // BUFFER MESSAGE // Set buffer message parameters bufferMessage=true; bufferText="buffering"; bufferTextColor="#FFFFFF"; bufferTextBackgroundColor="#993333"; bufferTextBackgroundAlpha=40; // bufferTextPosition="Upper Right" | bufferTextPosition="Upper Left" | bufferTextPosition="Lower Right" | bufferTextPosition="Lower Left" | bufferTextPosition="Center" bufferTextPosition="Upper Right"; // LOGO // Enables a logo to be displayed on the screen during playback: true | false // logo file has to be a jpg or a swf. logo=false; // Set path to the logo file logoPath="/myFlash/swf/logo.swf"; // logoPosition="Upper Right" | logoPosition="Upper Left" | logoPosition="Lower Right" | logoPosition="Lower Left" logoPosition="Upper Right"; logoAlpha=70; // Set logo position in pixels from edge of player logo_x=10; logo_y=10; // COMMERCIAL // If differentVersions=false then only upload a single version of a commercial movie to your server: [commercialMovieName].flv // if differentVersions=true, you will need to upload multiple versions (ex: low, med, hi) of a commercial movie to your server: // Set the commercial movie name extension that is associated with each different bitrate version // Use the same bitrate version extensions that were defined in the BANDWIDTH DETECTION section above // [commercialMovieName][version_hi_extension].flv // [commercialMovieName][version_medium_extension].flv // [commercialMovieName][version_low_extension].flv // Set the commercialMovieName without extension: commercialMovieName=""; // Javascript functions to call when the commercial starts and when the user clicks on the screen during a commercial. // Flash will call getURL("javascript:"+nameOfYourFunction); // For example you can call an alert Function, commercialFunctionStart="alert('start commercial');" commercialFunctionStart=""; commercialFunctionClickScreen=""; // Select to show either a commercial text message or a commercial text message plus the "coming next" movie title // commercialMessage="CommercialText" | commercialMessage="CommercialText and MovieTitle" commercialMessage="CommercialText"; // Set movieTitleForComingNext property if commercialMessage="CommercialText and MovieTitle" movieTitleForComingNext=""; // Define the commercial text message and its properties: commercialText="Your movie will start after this commercial..."; commercialTextColor="#FFFFFF"; commercialTextBold=true; // SUBTITLES // Subtitles are defined in an XML file; set the XML file name here: subtitleXML=""; // Sub Titles are visible at start: subVisible= true | false subVisible=true; // Sub titles can be controlled with a button; subButton= true | false: subButton=false; subButtonOffColor="#FFFFFF"; subColor="#FFFFFF"; subBackground=true; subBackgroundColor="#000000"; subBackgroundAlpha=90; subFontSize=16; autohideSubBackground=true; // Set sub title text alignment: subAlign="left" | subAlign="center" | subAlign="right" subAlign="center"; // SUBTITLES IN FULLSCREEN MODE // Enables sub titles to be styled differently when in full screen mode subColorFullScreen="#FFFFFF"; subBackgroundFullScreen=false; subBackgroundColorFullScreen="#000000"; subBackgroundAlphaFullScreen=90; subFontSizeFullScreen=30; autohideSubBackgroundFullScreen=true; // subAlignFullScreen="left" | subAlignFullScreen="center" | subAlignFullScreen="right" subAlignFullScreen="center"; blankLineFullScreen=0; // POP UP // Set display properties for Detect Flash Player Pop Up // Detect Flash Player Text=[detectPopUpText1]+[versionNumber]+[detectPopUpText2] // You can use HTML tags to style your text detectPopUpTitle="Adobe Flash Player Version"; detectPopUpText1="You have Flash Player
version "; detectPopUpText2=" installed.

Enjoy a fullscreen
experience with the new Flash Player."; // Button label to get update for Flash Player detectPopUpButton1="Get Flash"; // Button label to bypass Flash Player update feature detectPopUpButton2="Continue"; // Detect Bandwidth Pop Up // Enable Bandwidth Detect Pop Up window: true | false displayBandwidthDetectPopUp=true; // Set display text for Bandwidth detect Pop Up feature // Detect Bandwidth Result Text=[bandwidthDetectPopUpText2]+[bandwidth]+" kbps" bandwidthDetectPopUpTitle="Rich Media Project Speed Detector"; bandwidthDetectPopUpText1="Detecting Bandwidth
Please wait..."; bandwidthDetectPopUpText2="Your Bandwidth :
" // Loading Movie Pop Up // Enable Movie Loading Pop Up window text: true | false displayLoadingMoviePopUp=true; loadingMoviePopUpTitle="Loading..."; loadingMoviePopUpText="Loading Movie
Please wait..." // Select Bandwidth Pop Up // Enables viewer to select bandwidth manually via this popup window // Select Bandwidth Text=[bandwidthSelectPopUpText1]+[bandwidthTextForXXXBandwidth]+[bandwidthSelectPopUpText2]+[version_XXX_value]+[bandwidthSelectPopUpText3] bandwidthSelectPopUpTitle="Bandwidth Selector"; bandwidthSelectPopUpButton1="Low"; bandwidthSelectPopUpButton2="Medium"; bandwidthSelectPopUpButton3="Hi"; bandwidthTextForLowBandwidth="Low"; bandwidthTextForMediumBandwidth="Medium"; bandwidthTextForHiBandwidth="Hi"; bandwidthSelectPopUpText1=""; bandwidthSelectPopUpText2=" bandwidth is selected :
"; bandwidthSelectPopUpText3=" kbps movie.

Please select the desired
bandwidth :"; // Info Pop Up // This pop up is displayed if no movie is loaded at start (movieName="") displayInfoPopUp=true; infoPopUpTitle="Select movie"; infoPopUpText="Please select a movie in the gallery" // SWF PROPERTIES // swfPath : path of the swf that contains the player (without swf extension) swfPath="swf/Player"; // swfID : name of the Flash Object swfID="Player"; // speedClipPath : path of the swf that contains the speed detector clip (without swf extension) speedClipPath="swf/speedClip"; swfWidth=playerWidth; swfHeight=playerHeight+controlsY+1; swfBackgroundColor="#FFFFFF"; //////////////////////////////////////////////// // OBJECT BUILDER : DO NOT MODIFY THIS SCRIPT // //////////////////////////////////////////////// var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false; var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false; var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false; function AC_AddExtension(src, ext) { if (src.indexOf('?') != -1) return src.replace(/\?/, ext+'?'); else return src + ext; } function AC_Generateobj(objAttrs, params, embedAttrs) { var str = ''; if (isIE && isWin && !isOpera) { str += ' '; str += '>'; } else { str += '