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	 * Name of the video file. Used if only one video is shown.
18	 *
19	 * Note for testing locally: Specify an empty baseURL '', if you want to load
20	 * the video from your local disk from the directory that contains
21	 * FlowPlayer.swf. In this case the videoFile parameter value should start
22	 * with a slash, for example '/video.flv'.
23	 *
24	 * See also: 'baseURL' that affects this variable
25	 */
26//	 videoFile: 'honda_accord.flv',
27
28	/*
29	 * Clip to be used if the file specified with 'videoFile' or any of the clips in the playlist
30	 * was not found.  The missing video clips are replaced by this clip. This can be
31	 * an image or a FLV clip. Typically this will contain an image/video saying
32	 * "the video you requested cannot be found.....".
33	 *
34	 * The syntax for the value is the same is with the clips in a playlist
35	 * including the possibility to have start/end and duration properties.
36	 *
37	 * See also: 'baseURL' that affects this variable
38	 */
39	 noVideoClip: { url: 'main_clickToPlay.jpg', duration: 10 },
40	 //noVideoClip: { url: 'MiltonFriedmanonLimi.flv' },
41
42	/*
43	 * Playlist is used to publish several videos using one player instance.
44	 * The clips in the playlist may have following properties:
45	 *
46	 * name: Name for the clip to be shown in the playlist view. If this is
47	 *       not given, the clip will be hidden from the view.
48	 *
49	 * start: The start time (seconds) from where to start the playback. A nonzero
50	 *        value can only be used when using a streaming server!!
51	 * end: The end time (seconds) where to stop the playback.
52	 *
53	 * duration: The duration the image is to be shown. If not given the playback
54	 *           pauses when the image is reached in the list.
55	 *
56	 * protected: (true/false) Apply inlinine linking protection for this clip?
57	 *            Optional, defaults to false.
58	 *
59	 * linkUrl: Associates a hyperlink pointing to the specified URL. The linked
60	 *          document will be opened to the browser when the clip area is clicked.
61	 * 			Specifying this parameter will replace the normal pause/resume behavior
62	 * 			that is associated to clicking the display area. If you specify an empty
63	 * 			linkUrl '' the pause/resume behavior is disabled but no hyperlink
64	 * 			is created.
65	 * linkWindow: Specifies the name of the browser window or frame into which to load
66	 *   the linked document. Can be a custom name or one of presets: '_blank',
67	 *   '_parent', '_self', '_top'. (optional, defaults to '_blank')
68	 *
69	 * controlEnabled: (true/false) Enable transport control buttons for this clip?
70	 *                 Optional, defaults to true.
71	 *
72	 * You can also have images in the playlist. The playback pauses in the
73	 * image unless a 'duration' property is given for the image:
74	 *
75	 * See also: 'baseURL' is prefixed with each URL
76	 */
77	playList: [
78	{ url: 'main_clickToPlay.jpg' },
79	{ name: 'Honda Accord', url: '!honda_accord.flv' },
80	{ name: 'River', url: 'river.flv' },
81	{ name: 'Ounasvaara', url: 'ounasvaara.flv' }
82	],
83
84	/*
85	 * Specifies wether the playlist should be shown in the player SWF component or not.
86	 * Optional, defaults to false.
87	 *
88	 * I think it's better to have the visible part of the playlist in HTML
89	 * and use JavaScript to control the player (see FlowPlayerJs.html for an example).
90	 */
91	showPlayList: true,
92
93	/*
94	 * Specifies wether the playlist control buttons should be shown in the player SWF component or not.
95	 * Optional, defaults to the value of showPlayList.
96	 */
97	showPlayListButtons: true,
98
99	/*
100	 * Streaming server connection URL.
101	 */
102//	 streamingServerURL: 'rtmp://localahost:oflaDemo',
103
104	/*
105	 * baseURL specifies the URL that is appended in front of different file names
106	 * given in this file.
107	 *
108	 * You don't need to specify this at all if you place the video next to
109	 * the player SWF file on the Web server (to be available under the same URL path).
110	 */
111//	 baseURL: 'http://flowplayer.sourceforge.net/video',
112
113
114	/*
115	 * What kind of streaming server? Currently 'red5' and 'fms' provide different
116	 * kind of timing information with the flv metadata.
117	 */
118//	streamingServer: 'fms',
119
120	/*
121	 * Specifies whether thumbnail information is contained in the FLV's cue point
122	 * metadata. Cue points can be injected into the FLV file using
123	 * for example Flvtool2. See the FlowPlayer web site for more info.
124	 * (optional, defaults to false)
125	 *
126	 * See also: cuePoints below for an alternative way of specifying thumb metadata
127	 */
128//	thumbsOnFLV: true,
129
130	/*
131	 * Thumbnails specific to cue points. Use this if you don't want to
132	 * embed thumbnail metadata into the FLV's cue points.
133	 * If you have thumbNails defined here you should have thumbsOnFLV: false !
134	 * thumb times are given in seconds
135	 */
136// 	thumbs: [
137// 	{ thumbNail:  'Thumb1.jpg', time: 10 },
138// 	{ thumbNail:  'Thumb2.jpg', time: 24 },
139// 	{ thumbNail:  'Thumb3.jpg', time: 54 },
140// 	{ thumbNail:  'Thumb4.jpg', time: 74 },
141// 	{ thumbNail:  'Thumb5.jpg', time: 94 },
142// 	{ thumbNail:  'Thumb6.jpg', time: 110 }
143// 	],
144	// Location of the thumbnail files
145// 	thumbLocation: 'http://www.kolumbus.fi/apiirain/video',
146
147	/*
148	 * 'autoPlay' variable defines whether playback begins immediately or not.
149	 *
150	 * Note that currently with red5 you should not have false in autoPlay
151	 * when you specify a nonzero starting position for the video clip. This is because red5
152	 * does not send FLV metadata when the playback starts from a nonzero value.
153	 *
154	 * (optional, defaults to true)
155	 */
156	autoPlay: true,
157
158	/*
159	 * 'autoBuffering' specifies wheter to start loading the video stream into
160	 *  buffer memory  immediately. Only meaningful if 'autoPlay' is set to
161	 * false. (optional, defaults to true)
162	 */
163	autoBuffering: true,
164
165	/*
166	 * 'startingBufferLength' specifies the video buffer length to be used to kick
167	 * off the playback. This is used in the beginning of the playback and every time
168	 * after the player has ran out of buffer memory.
169	 * More info at: http://www.progettosinergia.com/flashvideo/flashvideoblog.htm#031205
170	 * (optional, defaults to the value of 'bufferLength' setting)
171	 *
172	 * see also: bufferLength
173	 */
174//	startingBufferLength: 5,
175
176	/*
177	 * 'bufferLength' specifies the video buffer length in seconds. This is used
178	 * after the playback has started with the initial buffer length. You should
179	 * use an arbitrary large value here to ensure stable playback.
180	 * (optional, defaults to 10 seconds)
181	 *
182	 * see also: startingBufferLength
183	 */
184	bufferLength: 20,
185
186	/*
187	 * 'loop' defines whether the playback should loop to the first clip after
188	 * all clips in the playlist have been shown. It is used as the
189	 * default state of the toggle button that controls looping. (optional,
190	 * defaults to true)
191	 */
192	loop: true,
193
194	/*
195	 * Specifies wether the loop toggle button should be shown in the player SWF component or not.
196	 * Optional, defaults to true.
197	 */
198//	showLoopButton: false,
199
200	/*
201	 * Specifies the height to be allocated for the video display. This is the
202	 * maximum height available for the different resizing options.
203	 *
204	 * Note also that the height of the playlist widget is adjusted so that
205	 * it will show complete rows. The list widget will not have a weight that
206	 * would make it to show only half of the height of a clip's name. This
207	 * adjustment may result in some empty space at the bottom of the coponent's
208	 * allocated area. This empty space can be removed by adjusting the allocated
209	 * size (changing the value of object tag's height attribute).
210	 *
211	 */
212	videoHeight: 320,
213
214	/*
215	 * Specifies how the video is scaled initially. This can be then changed by
216	 * the user through the menu. (optional, defaults to 'fit')
217	 * Possible values:
218	 * 'fit'   Fit to window by preserving the aspect ratios encoded in the FLV metadata.
219	 *         This is the default behavior.
220	 * 'half'  Half size (preserves aspect ratios)
221	 * 'orig'  Use the dimensions encoded in FLV. If the video is too big for the
222	 *         available space the video is scaled as if using the 'fit' option.
223	 * 'scale' Scale the video to fill all available space for the video. Ignores
224	 *         the dimensions in metadata.
225	 *
226	 */
227	initialScale: 'fit',
228
229	/*
230	 * Specifies if the menu containing the size options should be shown or not.
231	 * (optional, defaults to true)
232//	showMenu: false,
233
234	/*
235	 * 'hideControls' if set to true, hides all buttons and the progress bar
236	 * leaving only the video showing (optional, defaults to false)
237	 */
238	hideControls: false,
239
240	/*
241	 * URL that specifies a base URL that points to a folder containing
242	 * images used to skin the player. You must specify this if you intend
243	 * to load external button images (see 'loadButtonImages' below).
244	 */
245	skinImagesBaseURL: 'http://flowplayer.sourceforge.net/resources'
246
247	/*
248	 * Will button images be loaded from external files, or will images embedded
249	 * in the player SWF component be used? Set this to false if you want to "skin"
250	 * the buttons. Optional, defaults to true.
251	 *
252	 * NOTE: If you set this to false, you need to have the skin images available
253	 * on the server! Otherwise the player will not show up at all or will show
254	 * up corrupted.
255	 *
256	 * See also: 'skinImagesBaseURL' that affects this variable
257	 */
258//	useEmbeddedButtonImages: false,
259
260	/*
261	 * Optional logo image file. Specify this variable if you want to include
262	 * a logo image on the right side of the progress bar. 'skinImagesBaseURL'
263	 * will be prefixed to the URL used in loading.
264	 *
265	 * NOTE: If you set a value for this, you need to have the logo file available
266	 * on the server! Otherwise the player will not show up at all or will show
267	 * up corrupted.
268	 *
269	 * See also: 'skinImagesBaseURL' that affects this variable
270	 */
271//	logoFile: 'Logo.jpg',
272
273	/*
274	 * 'splashImageFile' specifies an image file to be used as a splash image.
275	 * This is useful if 'autoPlay' is set to false and you want to show a
276	 * welcome image before the video is played. Should be in JPG format. The
277	 * value of 'baseURL' is used similarily as with the video file name and
278	 * therefore the video and the image files should be placed in the Web
279	 * server next to each other.
280	 *
281	 * NOTE: If you set a value for this, you need to have the splash image available
282	 * on the server! Otherwise the player will not show up at all or will show
283	 * up corrupted.
284	 *
285	 * NOTE2: You can also specify the splash in a playlist. This is just
286	 * an alternative way of doing it. It was preserved for backward compatibility.
287	 *
288	 * See also: 'skinImagesBaseURL' that affects this variable
289	 */
290//	splashImageFile: 'main_clickToPlay.jpg',
291
292	/*
293	 * Should the splash image be scaled to fit the entire video area? If false,
294	 * the image will be centered. Optional, defaults to false.
295	 */
296//	scaleSplash: false,
297
298	/*
299	 * 'progressBarColor1' defines the color of the progress bar at the bottom
300	 * and top edges. Specified in hexadecimal triplet form indicating the RGB
301	 * color component values. (optional, defaults to light gray: 0xAAAAAA)
302	 */
303//	progressBarColor1: 0xFFFFFF,
304
305
306	/*
307	 * 'progressBarColor2' defines the color in the middle of the progress bar.
308	 * The value of this and 'progressBarColor1' variables define the gradient
309	 * color fill of the progress bar. (optional, defaults to dark gray: 0x555555)
310	 */
311//	progressBarColor2: 0xDDFFDD,
312
313	/*
314	 * 'bufferBarColor1' defines the color of the buffer size indicator bar at the bottom
315	 * and top edges. (optional, defaults to 0xAAAAAA)
316	 */
317//	bufferBarColor1: 0xFFFFFF,
318
319
320	/*
321	 * 'bufferBarColor2' defines the color of the buffer size indicator bar in the middle
322	 * of the bar. (optional, defaults to 0xDDDDDD)
323	 */
324//	bufferBarColor2: 0xDDFFDD,
325
326	/*
327	 * 'progressBarBorderColor1' defines the color of the progress bar's border at the bottom
328	 * and top edges. (optional, defaults to 0xAAAAAA)
329	 */
330//	progressBarBorderColor1: 0xDDDDDD,
331
332
333	/*
334	 * 'progressBarBorderColor2' defines the color of the progress bar's border in the middle
335	 * of the bar. (optional, defaults to 0xDDDDDD)
336	 */
337//	progressBarBorderColor2: 0xEEEEEE,
338
339	/*
340	 * 'bufferingAnimationColor' defines the color of the moving bars used in the buffering
341	 * animation. (optional, defaults to 0xEEEEEE)
342	 */
343//	bufferingAnimationColor: 0x0000FF;
344
345	/*
346	 * Name of the authentication code file name that is used to prevent inline linking
347	 * of video and image files. This can be a complete URL or just a file name relative
348	 * to the location from where the player is loaded. (optional, defaults to flowplayer_auth.txt)
349	 */
350//	authFileName: 'http://www.mytube.org/authCode.txt'
351
352}
353
354