1 | /*
|
---|
2 | * FlowPlayer external configuration file.
|
---|
3 | * Copyright 2005-2006 Anssi Piirainen
|
---|
4 | *
|
---|
5 | * All settings defined in this file can be alternatively defined in the
|
---|
6 | * embedding HTML object tag (as flashvars variables). Values defined in the
|
---|
7 | * object tag override values defined in this file. You could use this
|
---|
8 | * config file to provide defaults for multiple player instances that
|
---|
9 | * are used in a Web site. Individual instances can be then customized
|
---|
10 | * with their embedding HTML.
|
---|
11 | *
|
---|
12 | * Note that you should probably remove all the comments from this file
|
---|
13 | * before using it. That way the file will be smaller and will load faster.
|
---|
14 | */
|
---|
15 | {
|
---|
16 | /*
|
---|
17 | * Instructs the player to load the configuration from an external config file.
|
---|
18 | * This can be a abosulte URL or a relative url (relative to the HTML page
|
---|
19 | * where the player is embedded).
|
---|
20 | */
|
---|
21 | // configFileName: 'flowPlayer.js',
|
---|
22 |
|
---|
23 | /*
|
---|
24 | * Instructs the player to load the configuration from a RTMP server.
|
---|
25 | * The player connects to the server listening in the address specified
|
---|
26 | * by this URL and calls a method 'getStreamPlayerConfig' that should return a
|
---|
27 | * valid FP configuration object.
|
---|
28 | */
|
---|
29 | // rtmpConfigUrl: 'rtmp://localhost/myapp',
|
---|
30 |
|
---|
31 | /*
|
---|
32 | * A param value to be passed to getStreamPlayerConfig(). A value 'foobar'
|
---|
33 | * will make the player to call getStreamPlayerConfig('foobsr')
|
---|
34 | */
|
---|
35 | // rtmpConfigParam: 'anssi',
|
---|
36 |
|
---|
37 | /*
|
---|
38 | * Name of the video file. Used if only one video is shown.
|
---|
39 | *
|
---|
40 | * Note for testing locally: Specify an empty baseURL '', if you want to load
|
---|
41 | * the video from your local disk from the directory that contains
|
---|
42 | * FlowPlayer.swf. In this case the videoFile parameter value should start
|
---|
43 | * with a slash, for example '/video.flv'.
|
---|
44 | *
|
---|
45 | * See also: 'baseURL' that affects this variable
|
---|
46 | */
|
---|
47 | // videoFile: 'honda_accord.flv',
|
---|
48 |
|
---|
49 | /*
|
---|
50 | * Clip to be used if the file specified with 'videoFile' or any of the clips in the playlist
|
---|
51 | * was not found. The missing video clips are replaced by this clip. This can be
|
---|
52 | * an image or a FLV clip. Typically this will contain an image/video saying
|
---|
53 | * "the video you requested cannot be found.....".
|
---|
54 | *
|
---|
55 | * The syntax for the value is the same is with the clips in a playlist
|
---|
56 | * including the possibility to have start/end and duration properties.
|
---|
57 | *
|
---|
58 | * See also: 'baseURL' that affects this variable
|
---|
59 | */
|
---|
60 | noVideoClip: { url: 'main_clickToPlay.jpg', duration: 10 },
|
---|
61 | //noVideoClip: { url: 'MiltonFriedmanonLimi.flv' },
|
---|
62 |
|
---|
63 | /*
|
---|
64 | * Playlist is used to publish several videos using one player instance.
|
---|
65 | * You can also have images in the playlist. The playback pauses in the
|
---|
66 | * image unless a 'duration' property is given for the image:
|
---|
67 |
|
---|
68 | * * The clips in the playlist may have following properties:
|
---|
69 | *
|
---|
70 | * name: Name for the clip to be shown in the playlist view. If this is
|
---|
71 | * not given, the clip will be hidden from the view.
|
---|
72 | *
|
---|
73 | * url: The URL used to load the clip.
|
---|
74 | *
|
---|
75 | * type: One of 'video', 'flv', 'swf', 'jpg'. Optional, determined from the URL's filename extension
|
---|
76 | * if that is present. 'video' means a video file in any format supported by Flash.
|
---|
77 | * 'flv' is present here for backward compatibility, use 'video' in new FlowPlayer installations
|
---|
78 | * now. Defaults to 'video' if the extension is not present in the URL.
|
---|
79 | *
|
---|
80 | * start: The start time (seconds) from where to start the playback. A nonzero
|
---|
81 | * value can only be used when using a streaming server!!
|
---|
82 | * end: The end time (seconds) where to stop the playback.
|
---|
83 | *
|
---|
84 | * duration: The duration the image is to be shown. If not given the playback
|
---|
85 | * pauses when the image is reached in the list.
|
---|
86 | *
|
---|
87 | * protected: (true/false) Apply inlinine linking protection for this clip?
|
---|
88 | * Optional, defaults to false.
|
---|
89 | *
|
---|
90 | * linkUrl: Associates a hyperlink pointing to the specified URL. The linked
|
---|
91 | * document will be opened to the browser when the clip area is clicked.
|
---|
92 | * Specifying this parameter will replace the normal pause/resume behavior
|
---|
93 | * that is associated to clicking the display area. If you specify an empty
|
---|
94 | * linkUrl '' the pause/resume behavior is disabled but no hyperlink
|
---|
95 | * is created.
|
---|
96 | * linkWindow: Specifies the name of the browser window or frame into which to load
|
---|
97 | * the linked document. Can be a custom name or one of presets: '_blank',
|
---|
98 | * '_parent', '_self', '_top'. (optional, defaults to '_blank')
|
---|
99 | *
|
---|
100 | * controlEnabled: (true/false) Enable transport control buttons for this clip?
|
---|
101 | * Optional, defaults to true.
|
---|
102 | *
|
---|
103 | * allowResize: (true/false) Allow resizing this clip according to the menu selection.
|
---|
104 | * Optional, defaults to true.
|
---|
105 | *
|
---|
106 | * overlay: A filename pointing to an image that will be placed on top of this image clip. This
|
---|
107 | * is only applicable to image clips (jpg or png files). Essentially this layers two images
|
---|
108 | * on top of each other. Typically the image on top is a big play button that is used on
|
---|
109 | * top of an image taken from the main movie.
|
---|
110 | *
|
---|
111 | * overlayId: ID that specifies a built-in overlay to be used. Currently the player supports
|
---|
112 | * one built-in overlay with ID 'play'. It renders a large play button with mouse hover color change.
|
---|
113 | * You can use this on top of image clips (one clip with both the 'url' property and
|
---|
114 | * 'overlayId' property).
|
---|
115 | * You can also specify a clip that only has this ID. In that
|
---|
116 | * case you should place it immediately before or after a FLV clip. This overlay-only
|
---|
117 | * clip is then rendered on top of the first or the last frame of the FLV video.
|
---|
118 | *
|
---|
119 | * live: (true/false) Is this a live stream (played from a media server)?
|
---|
120 | *
|
---|
121 | * showOnLoadBegin: (true/false) If true, make this clip visible when the fist bits have been loaded.
|
---|
122 | * If false, do not show this clip (show the background instead) before the buffer is filled
|
---|
123 | * and the playback starts. Optional, defaults to true.
|
---|
124 | *
|
---|
125 | * maxPlayCount: The maximum play count for this clip. The clip is removed from the playlist when
|
---|
126 | * the playcount reaches this amount.
|
---|
127 | *
|
---|
128 | * suggestedClipsInfoUrl: URL used to fetch suggestions (related videos) information from the server
|
---|
129 | *
|
---|
130 | * See also: 'baseURL' is prefixed with each URL
|
---|
131 | */
|
---|
132 | playList: [
|
---|
133 | { url: 'main_clickToPlay.jpg' },
|
---|
134 | { name: 'Honda Accord', url: '!honda_accord.flv' },
|
---|
135 | { name: 'River', url: 'river.flv' },
|
---|
136 | { name: 'Ounasvaara', url: 'ounasvaara.flv' }
|
---|
137 | ],
|
---|
138 |
|
---|
139 | /*
|
---|
140 | * Specifies wether the playlist control buttons should be shown in the player SWF component or not.
|
---|
141 | * Optional, defaults to the value of showPlayList.
|
---|
142 | */
|
---|
143 | showPlayListButtons: true,
|
---|
144 |
|
---|
145 | /*
|
---|
146 | * Streaming server connection URL.
|
---|
147 | * You don't need this with lighttpd, just use the streamingServer setting (see below) with it.
|
---|
148 | */
|
---|
149 | // streamingServerURL: 'rtmp://localahost:oflaDemo',
|
---|
150 |
|
---|
151 | /*
|
---|
152 | * Is this a live stream? Only makes sense when using a streaming server.
|
---|
153 | * Optional, defaults to false.
|
---|
154 | */
|
---|
155 | // liveStream: true,
|
---|
156 |
|
---|
157 | /*
|
---|
158 | * baseURL specifies the URL that is appended in front of different file names
|
---|
159 | * given in this file.
|
---|
160 | *
|
---|
161 | * You don't need to specify this at all if you place the video next to
|
---|
162 | * the player SWF file on the Web server (to be available under the same URL path).
|
---|
163 | */
|
---|
164 | // baseURL: 'http://flowplayer.sourceforge.net/video',
|
---|
165 |
|
---|
166 |
|
---|
167 | /*
|
---|
168 | * What kind of streaming server? Available options: 'fms', 'red5', 'lighttpd'
|
---|
169 | */
|
---|
170 | // streamingServer: 'fms',
|
---|
171 |
|
---|
172 | /*
|
---|
173 | * Specifies whether thumbnail information is contained in the FLV's cue point
|
---|
174 | * metadata. Cue points can be injected into the FLV file using
|
---|
175 | * for example Flvtool2. See the FlowPlayer web site for more info.
|
---|
176 | * (optional, defaults to false)
|
---|
177 | *
|
---|
178 | * See also: cuePoints below for an alternative way of specifying thumb metadata
|
---|
179 | */
|
---|
180 | // thumbsOnFLV: true,
|
---|
181 |
|
---|
182 | /*
|
---|
183 | * Thumbnails specific to cue points. Use this if you don't want to
|
---|
184 | * embed thumbnail metadata into the FLV's cue points.
|
---|
185 | * If you have thumbNails defined here you should have thumbsOnFLV: false !
|
---|
186 | * thumb times are given in seconds
|
---|
187 | */
|
---|
188 | // thumbs: [
|
---|
189 | // { thumbNail: 'Thumb1.jpg', time: 10 },
|
---|
190 | // { thumbNail: 'Thumb2.jpg', time: 24 },
|
---|
191 | // { thumbNail: 'Thumb3.jpg', time: 54 },
|
---|
192 | // { thumbNail: 'Thumb4.jpg', time: 74 },
|
---|
193 | // { thumbNail: 'Thumb5.jpg', time: 94 },
|
---|
194 | // { thumbNail: 'Thumb6.jpg', time: 110 }
|
---|
195 | // ],
|
---|
196 | // Location of the thumbnail files
|
---|
197 | // thumbLocation: 'http://www.kolumbus.fi/apiirain/video',
|
---|
198 |
|
---|
199 | /*
|
---|
200 | * 'autoPlay' variable defines whether playback begins immediately or not.
|
---|
201 | *
|
---|
202 | * Note that currently with red5 you should not have false in autoPlay
|
---|
203 | * when you specify a nonzero starting position for the video clip. This is because red5
|
---|
204 | * does not send FLV metadata when the playback starts from a nonzero value.
|
---|
205 | *
|
---|
206 | * (optional, defaults to true)
|
---|
207 | */
|
---|
208 | autoPlay: true,
|
---|
209 |
|
---|
210 | /*
|
---|
211 | * 'autoBuffering' specifies wheter to start loading the video stream into
|
---|
212 | * buffer memory immediately. Only meaningful if 'autoPlay' is set to
|
---|
213 | * false. (optional, defaults to true)
|
---|
214 | */
|
---|
215 | autoBuffering: true,
|
---|
216 |
|
---|
217 | /*
|
---|
218 | * 'startingBufferLength' specifies the video buffer length to be used to kick
|
---|
219 | * off the playback. This is used in the beginning of the playback and every time
|
---|
220 | * after the player has ran out of buffer memory.
|
---|
221 | * More info at: http://www.progettosinergia.com/flashvideo/flashvideoblog.htm#031205
|
---|
222 | * (optional, defaults to the value of 'bufferLength' setting)
|
---|
223 | *
|
---|
224 | * see also: bufferLength
|
---|
225 | */
|
---|
226 | // startingBufferLength: 5,
|
---|
227 |
|
---|
228 | /*
|
---|
229 | * 'bufferLength' specifies the video buffer length in seconds. This is used
|
---|
230 | * after the playback has started with the initial buffer length. You should
|
---|
231 | * use an arbitrary large value here to ensure stable playback.
|
---|
232 | * (optional, defaults to 10 seconds)
|
---|
233 | *
|
---|
234 | * see also: startingBufferLength
|
---|
235 | */
|
---|
236 | bufferLength: 20,
|
---|
237 |
|
---|
238 | /*
|
---|
239 | * 'loop' defines whether the playback should loop to the first clip after
|
---|
240 | * all clips in the playlist have been shown. It is used as the
|
---|
241 | * default state of the toggle button that controls looping. (optional,
|
---|
242 | * defaults to true)
|
---|
243 | */
|
---|
244 | loop: true,
|
---|
245 |
|
---|
246 | /*
|
---|
247 | * Rewind back to the fist clip in the playlist when end of the list has been reached?
|
---|
248 | * This option only has effect if loop is false (please see loop variable above).
|
---|
249 | * (optional, defaults to false)
|
---|
250 | */
|
---|
251 | autoRewind: true,
|
---|
252 |
|
---|
253 | /*
|
---|
254 | * Specifies wether the loop toggle button should be shown in the player SWF component or not.
|
---|
255 | * Optional, defaults to false.
|
---|
256 | */
|
---|
257 | // showLoopButton: true,
|
---|
258 |
|
---|
259 | /*
|
---|
260 | * Specifies the height to be allocated for the video display. This is the
|
---|
261 | * maximum height available for the different resizing options.
|
---|
262 | */
|
---|
263 | videoHeight: 320,
|
---|
264 |
|
---|
265 | /*
|
---|
266 | * Specifies the width for the control buttons area. Optiona, defaults to the
|
---|
267 | * width setting used in the embedding code.
|
---|
268 | */
|
---|
269 | // controlsWidth: 480,
|
---|
270 |
|
---|
271 | /*
|
---|
272 | * Specifies how the video is scaled initially. This can be then changed by
|
---|
273 | * the user through the menu. (optional, defaults to 'fit')
|
---|
274 | * Possible values:
|
---|
275 | * 'fit' Fit to window by preserving the aspect ratios encoded in the FLV metadata.
|
---|
276 | * This is the default behavior.
|
---|
277 | * 'half' Half size (preserves aspect ratios)
|
---|
278 | * 'orig' Use the dimensions encoded in FLV. If the video is too big for the
|
---|
279 | * available space the video is scaled as if using the 'fit' option.
|
---|
280 | * 'scale' Scale the video to fill all available space for the video. Ignores
|
---|
281 | * the dimensions in metadata.
|
---|
282 | *
|
---|
283 | */
|
---|
284 | initialScale: 'fit',
|
---|
285 |
|
---|
286 | /*
|
---|
287 | * Specifies if the menu containing the size options should be shown or not.
|
---|
288 | * (optional, defaults to true)
|
---|
289 | // showMenu: false,
|
---|
290 |
|
---|
291 | /*
|
---|
292 | * 'hideControls' if set to true, hides all buttons and the progress bar
|
---|
293 | * leaving only the video showing (optional, defaults to false)
|
---|
294 | */
|
---|
295 | hideControls: false,
|
---|
296 |
|
---|
297 | /*
|
---|
298 | * URL that specifies a base URL that points to a folder containing
|
---|
299 | * images used to skin the player. You must specify this if you intend
|
---|
300 | * to load external button images (see 'loadButtonImages' below).
|
---|
301 | */
|
---|
302 | skinImagesBaseURL: 'http://flowplayer.sourceforge.net/resources'
|
---|
303 |
|
---|
304 | /*
|
---|
305 | * Will button images be loaded from external files, or will images embedded
|
---|
306 | * in the player SWF component be used? Set this to false if you want to "skin"
|
---|
307 | * the buttons. Optional, defaults to true.
|
---|
308 | *
|
---|
309 | * NOTE: If you set this to false, you need to have the skin images available
|
---|
310 | * on the server! Otherwise the player will not show up at all or will show
|
---|
311 | * up corrupted.
|
---|
312 | *
|
---|
313 | * See also: 'skinImagesBaseURL' that affects this variable
|
---|
314 | */
|
---|
315 | // useEmbeddedButtonImages: false,
|
---|
316 |
|
---|
317 | /*
|
---|
318 | * 'splashImageFile' specifies an image file to be used as a splash image.
|
---|
319 | * This is useful if 'autoPlay' is set to false and you want to show a
|
---|
320 | * welcome image before the video is played. Should be in JPG format. The
|
---|
321 | * value of 'baseURL' is used similarily as with the video file name and
|
---|
322 | * therefore the video and the image files should be placed in the Web
|
---|
323 | * server next to each other.
|
---|
324 | *
|
---|
325 | * NOTE: If you set a value for this, you need to have the splash image available
|
---|
326 | * on the server! Otherwise the player will not show up at all or will show
|
---|
327 | * up corrupted.
|
---|
328 | *
|
---|
329 | * NOTE2: You can also specify the splash in a playlist. This is just
|
---|
330 | * an alternative way of doing it. It was preserved for backward compatibility.
|
---|
331 | *
|
---|
332 | * See also: 'baseURL' that affects this variable
|
---|
333 | */
|
---|
334 | // splashImageFile: 'main_clickToPlay.jpg',
|
---|
335 |
|
---|
336 | /*
|
---|
337 | * Should the splash image be scaled to fit the entire video area? If false,
|
---|
338 | * the image will be centered. Optional, defaults to false.
|
---|
339 | */
|
---|
340 | // scaleSplash: false,
|
---|
341 |
|
---|
342 | /*
|
---|
343 | * 'progressBarColor1' defines the color of the progress bar at the bottom
|
---|
344 | * and top edges. Specified in hexadecimal triplet form indicating the RGB
|
---|
345 | * color component values. (optional)
|
---|
346 | */
|
---|
347 | // progressBarColor1: 0xFFFFFF,
|
---|
348 |
|
---|
349 |
|
---|
350 | /*
|
---|
351 | * 'progressBarColor2' defines the color in the middle of the progress bar.
|
---|
352 | * The value of this and 'progressBarColor1' variables define the gradient
|
---|
353 | * color fill of the progress bar. (optional)
|
---|
354 | */
|
---|
355 | // progressBarColor2: 0xDDFFDD,
|
---|
356 |
|
---|
357 | /*
|
---|
358 | * 'bufferBarColor1' defines the color of the buffer size indicator bar at the bottom
|
---|
359 | * and top edges. (optional)
|
---|
360 | */
|
---|
361 | // bufferBarColor1: 0xFFFFFF,
|
---|
362 |
|
---|
363 |
|
---|
364 | /*
|
---|
365 | * 'bufferBarColor2' defines the color of the buffer size indicator bar in the middle
|
---|
366 | * of the bar. (optional)
|
---|
367 | */
|
---|
368 | // bufferBarColor2: 0xDDFFDD,
|
---|
369 |
|
---|
370 | /*
|
---|
371 | * 'progressBarBorderColor1' defines the color of the progress bar's border at the bottom
|
---|
372 | * and top edges. (optional)
|
---|
373 | */
|
---|
374 | // progressBarBorderColor1: 0xDDDDDD,
|
---|
375 |
|
---|
376 |
|
---|
377 | /*
|
---|
378 | * 'progressBarBorderColor2' defines the color of the progress bar's border in the middle
|
---|
379 | * of the bar. (optional)
|
---|
380 | */
|
---|
381 | // progressBarBorderColor2: 0xEEEEEE,
|
---|
382 |
|
---|
383 | /*
|
---|
384 | * 'bufferingAnimationColor' defines the color of the moving bars used in the buffering
|
---|
385 | * animation. (optional)
|
---|
386 | */
|
---|
387 | // bufferingAnimationColor: 0x0000FF,
|
---|
388 |
|
---|
389 | /*
|
---|
390 | * 'controlsAreaBorderColor' defines the color of the border behind buttons and progress bar
|
---|
391 | * (optional)
|
---|
392 | */
|
---|
393 | // controlsAreaBorderColor: 0x1234,
|
---|
394 |
|
---|
395 | /*
|
---|
396 | * 'timeDisplayFontColor' defines the color of the progress/duration time display
|
---|
397 | * (optional)
|
---|
398 | */
|
---|
399 | // timeDisplayFontColor: 0xAABBCC,
|
---|
400 |
|
---|
401 | /*
|
---|
402 | * Height of the progress bar. (optional)
|
---|
403 | */
|
---|
404 | // progressBarHeight: 10,
|
---|
405 |
|
---|
406 | /*
|
---|
407 | * Height of the progress bar area. (optional)
|
---|
408 | */
|
---|
409 | // progressBarAreaHeight: 10,
|
---|
410 |
|
---|
411 | /*
|
---|
412 | * Name of the authentication code file name that is used to prevent inline linking
|
---|
413 | * of video and image files. This can be a complete URL or just a file name relative
|
---|
414 | * to the location from where the player is loaded. (optional, defaults to flowplayer_auth.txt)
|
---|
415 | */
|
---|
416 | // authFileName: 'http://www.mytube.org/authCode.txt',
|
---|
417 |
|
---|
418 | /*
|
---|
419 | * The URL pointing to a sctipt that opens the player full screen.
|
---|
420 | * If this is not configured explicitly, the default script,
|
---|
421 | * http://flowplayer.sourceforge.net/fullscreen.js, is used.
|
---|
422 | */
|
---|
423 | // fullScreenScriptURL: 'http://mysite.org/fullscreen.js'
|
---|
424 |
|
---|
425 | /**
|
---|
426 | * Specifies which menu items will be show. This is an array that contains a boolean
|
---|
427 | * value for each of the items. By default shows them all except "full screen".
|
---|
428 | */
|
---|
429 | // menuItems[
|
---|
430 | // true, // show 'Fit to window'
|
---|
431 | // true, // show 'Half size'
|
---|
432 | // true, // show 'Original size'
|
---|
433 | // true, // show 'Fill window'
|
---|
434 | // true, // show 'Full screen'
|
---|
435 | // false // hide 'Embed...'
|
---|
436 | // ],
|
---|
437 |
|
---|
438 |
|
---|
439 | /*
|
---|
440 | * Specifies wether the full screen button should be shown in the player SWF component or not.
|
---|
441 | * Optional, defaults to true.
|
---|
442 | */
|
---|
443 | // showFullScreenButton: false,
|
---|
444 |
|
---|
445 | /*
|
---|
446 | * Use the Flash 9 native full screen mode.
|
---|
447 | */
|
---|
448 | // useNativeFullScreen: true,
|
---|
449 | }
|
---|
450 |
|
---|