📄 flowplayer.js
字号:
/* * 'bufferLength' specifies the video buffer length in seconds. This is used * after the playback has started with the initial buffer length. You should * use an arbitrary large value here to ensure stable playback. * (optional, defaults to 10 seconds) * * see also: startingBufferLength */ bufferLength: 20, /* * 'loop' defines whether the playback should loop to the first clip after * all clips in the playlist have been shown. It is used as the * default state of the toggle button that controls looping. (optional, * defaults to true) */ loop: true, /* * Rewind back to the fist clip in the playlist when end of the list has been reached? * This option only has effect if loop is false (please see loop variable above). * (optional, defaults to false) */ autoRewind: true, /* * Specifies wether the loop toggle button should be shown in the player SWF component or not. * Optional, defaults to false. */// showLoopButton: true, /* * Specifies the height to be allocated for the video display. This is the * maximum height available for the different resizing options. */ videoHeight: 320, /* * Specifies the width for the control buttons area. Optiona, defaults to the * width setting used in the embedding code. */// controlsWidth: 480, /* * Specifies how the video is scaled initially. This can be then changed by * the user through the menu. (optional, defaults to 'fit') * Possible values: * 'fit' Fit to window by preserving the aspect ratios encoded in the FLV metadata. * This is the default behavior. * 'half' Half size (preserves aspect ratios) * 'orig' Use the dimensions encoded in FLV. If the video is too big for the * available space the video is scaled as if using the 'fit' option. * 'scale' Scale the video to fill all available space for the video. Ignores * the dimensions in metadata. * */ initialScale: 'fit', /* * Specifies if the menu containing the size options should be shown or not. * (optional, defaults to true)// showMenu: false, /* * 'hideControls' if set to true, hides all buttons and the progress bar * leaving only the video showing (optional, defaults to false) */ hideControls: false, /* * URL that specifies a base URL that points to a folder containing * images used to skin the player. You must specify this if you intend * to load external button images (see 'loadButtonImages' below). */ skinImagesBaseURL: 'http://flowplayer.sourceforge.net/resources' /* * Will button images be loaded from external files, or will images embedded * in the player SWF component be used? Set this to false if you want to "skin" * the buttons. Optional, defaults to true. * * NOTE: If you set this to false, you need to have the skin images available * on the server! Otherwise the player will not show up at all or will show * up corrupted. * * See also: 'skinImagesBaseURL' that affects this variable */// useEmbeddedButtonImages: false, /* * 'splashImageFile' specifies an image file to be used as a splash image. * This is useful if 'autoPlay' is set to false and you want to show a * welcome image before the video is played. Should be in JPG format. The * value of 'baseURL' is used similarily as with the video file name and * therefore the video and the image files should be placed in the Web * server next to each other. * * NOTE: If you set a value for this, you need to have the splash image available * on the server! Otherwise the player will not show up at all or will show * up corrupted. * * NOTE2: You can also specify the splash in a playlist. This is just * an alternative way of doing it. It was preserved for backward compatibility. * * See also: 'baseURL' that affects this variable */// splashImageFile: 'main_clickToPlay.jpg', /* * Should the splash image be scaled to fit the entire video area? If false, * the image will be centered. Optional, defaults to false. */// scaleSplash: false, /* * 'progressBarColor1' defines the color of the progress bar at the bottom * and top edges. Specified in hexadecimal triplet form indicating the RGB * color component values. (optional) */// progressBarColor1: 0xFFFFFF, /* * 'progressBarColor2' defines the color in the middle of the progress bar. * The value of this and 'progressBarColor1' variables define the gradient * color fill of the progress bar. (optional) */// progressBarColor2: 0xDDFFDD, /* * 'bufferBarColor1' defines the color of the buffer size indicator bar at the bottom * and top edges. (optional) */// bufferBarColor1: 0xFFFFFF, /* * 'bufferBarColor2' defines the color of the buffer size indicator bar in the middle * of the bar. (optional) */// bufferBarColor2: 0xDDFFDD, /* * 'progressBarBorderColor1' defines the color of the progress bar's border at the bottom * and top edges. (optional) */// progressBarBorderColor1: 0xDDDDDD, /* * 'progressBarBorderColor2' defines the color of the progress bar's border in the middle * of the bar. (optional) */// progressBarBorderColor2: 0xEEEEEE, /* * 'bufferingAnimationColor' defines the color of the moving bars used in the buffering * animation. (optional) */// bufferingAnimationColor: 0x0000FF, /* * 'controlsAreaBorderColor' defines the color of the border behind buttons and progress bar * (optional) */// controlsAreaBorderColor: 0x1234, /* * 'timeDisplayFontColor' defines the color of the progress/duration time display * (optional) */// timeDisplayFontColor: 0xAABBCC, /* * Height of the progress bar. (optional) */// progressBarHeight: 10, /* * Height of the progress bar area. (optional) */// progressBarAreaHeight: 10, /* * Name of the authentication code file name that is used to prevent inline linking * of video and image files. This can be a complete URL or just a file name relative * to the location from where the player is loaded. (optional, defaults to flowplayer_auth.txt) */// authFileName: 'http://www.mytube.org/authCode.txt', /* * The URL pointing to a sctipt that opens the player full screen. * If this is not configured explicitly, the default script, * http://flowplayer.sourceforge.net/fullscreen.js, is used. */// fullScreenScriptURL: 'http://mysite.org/fullscreen.js' /** * Specifies which menu items will be show. This is an array that contains a boolean * value for each of the items. By default shows them all except "full screen". */// menuItems[// true, // show 'Fit to window'// true, // show 'Half size'// true, // show 'Original size'// true, // show 'Fill window'// true, // show 'Full screen'// false // hide 'Embed...'// ], /* * Specifies wether the full screen button should be shown in the player SWF component or not. * Optional, defaults to true. */// showFullScreenButton: false, /* * Use the Flash 9 native full screen mode. */// useNativeFullScreen: true,}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -