/[drupal]/contributions/modules/swftools/CHANGELOG.txt
ViewVC logotype

Contents of /contributions/modules/swftools/CHANGELOG.txt

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.34 - (show annotations) (download)
Tue Mar 31 21:23:42 2009 UTC (7 months, 4 weeks ago) by stuartgreenfield
Branch: MAIN
CVS Tags: HEAD
Changes since 1.33: +5 -1 lines
File MIME type: text/plain
#418254 by Mark Theunissen: Fix generation of unique id in lutman.module.
1 31 March 2009
2 -------------
3 #418254 by Mark Theunissen: Fix generation of unique id in lutman.module.
4
5 30 March 2009
6 -------------
7 #418550 - Fix spelling of initialize to use US English.
8 #404076 - Added support for turning multiple CCK fields in to a playlist.
9 Fixed a bug that became apparent in swftools_playlist_prepare_data() function
10 that could result in incorrect filepaths being built.
11
12 28 March 2009
13 -------------
14 Fix error in regex that was used by filters that prevented [] being used in
15 place of <>.
16
17 19 March 2009
18 -------------
19 Added integrated support for CCK filefield. Based on #404076 and patches from
20 stormsweeper (/user/131571) and Amitaibu (/user/57511). Enables a formatter
21 that attaches to filefields to allow the content to be rendered via SWF Tools.
22
23 18 March 2009
24 -------------
25 #405498 - Background gradient for control bar was missing from settings page.
26
27 17 March 2009
28 -------------
29 In response to #348437 reported by stormsweeper two changes are implemented.
30 Added status report to main Drupal status page, and SWF Tools status, to give
31 a warning if the zlib library isn't present. This library is needed to read
32 height and width data from compressed swf files. Secondly, player modules now
33 report a default height and width, so if all else fails we can fall back on
34 those so that media content will display correctly. As part of this the sizing
35 function has been separated in to a new swftools_set_size() function to try and
36 clarify the code.
37
38 16 March 2009
39 -------------
40 Added support for product key for commercial FlowPlayers.
41
42 15 March 2009
43 -------------
44 FlowPlayer module was merging $vars->othervars in to the configuration array
45 for the FlowPlayer. This may be contributory in the broken content that was
46 reported in #401888.
47 FlowPlayer3 can now handle an image to create a splash image on the player.
48 Set image="myImage.jpg" in the input filter.
49 Start of new combined path rendering function to try and consolidate and
50 simplify code, and eliminate repeated calls to different functions in the body
51 of SWF Tools.
52
53 13 March 2009
54 -------------
55 Continuing work to explore the potential of the FlowPlayer3 plugins. Now added
56 support for the content plugin. Not sure if this has a lot of application, but
57 the idea is quite good. Using the FlowPlayer - Embed and FlowPlayer - Content
58 modules together you can script the content, so it looks quite cool!
59
60 New option added so that the flowplayer3_embed_swftools_methods() returns an
61 additional key 'private' with value TRUE. This flags that the embedding method
62 is not for 'general' use, and should not be displayed on the embedding settings
63 page. However, it will still appear on the SWF Tools status page.
64
65 12 March 2009
66 -------------
67 Experimental change to FlowPlayer 3 module to implement hook_flowplayer3().
68 The idea is that other modules could be written that allow the various
69 FlowPlayer 3 plugins to be added. The hook is called after the initial
70 FlowPlayer 3 configuration array is prepared, but before conversion to
71 JSON. All parameters are passed by reference, so the called modules can
72 directly manipulate everything. The first 'extension' is a fairly crude
73 implementation of the FlowPlayer3 JavaScript embedding method, which should
74 expose the JavaScript API. Thanks to FearFox for providing the original code
75 that I'm using at the moment to implement this! Because the FlowPlayer3
76 embedding is specific to FlowPlayer it doesn't report itself as a regular
77 embedding method. Simply enable the FlowPlayer3 - Embed module, and it will
78 automatically take over embedding of FlowPlayer content. You need to add
79 flowplayer3-3.0.6.min.js to the shared/flowplayer3 directory to make this
80 work.
81
82 10 March 2009
83 -------------
84 Changed prepare_playlist_function so it skips action checks if there is no
85 extension on the file. This is needed when working with streamed playlists.
86 Amended _swftools_filter_process_text() so that it lets the prepare playlist
87 function know if a specific action has been sent. Again, this is primarily
88 as a result of supporting streaming media.
89
90 08 March 2009
91 -------------
92 Experimental use of code cribbed from color.module to allow the FlowPlayer to
93 be quickly themed to a number of preset colour schemes. Uses the Garland
94 colour schemes as a start, and provides FlowPlayer3 default colours.
95 Include required path when reporting "Missing".
96
97 08 March 2009
98 -------------
99 #394858 - Autodetection of action was broken as a result of an intended
100 optimisation. Gone back to the old method.
101 #394486 - FlowPlayer3 default player set to latest version.
102
103 06 March 2009
104 -------------
105 Accidentally committed a local working version (not intended to be committed) so
106 had to recommit a fixed version.
107 SWFTOOLS_EMBED_METHOD constant has been renamed SWFTOOLS_EMBED to make it more
108 consistent with the concept of the first of the methods array defining an
109 'action'. This shouldn't have an impact unless anyone has written a custom
110 embedding method.
111
112 06 March 2009
113 -------------
114 Quick fix for #384876 until I can come up with a better solution (prevents the
115 SWF Tools playlist cache clear from deleting everything in the root of the file
116 system!)
117
118 06 March 2009
119 -------------
120 Lots more work on tidying up functions and adding comments. The prepare playlist
121 function has been overhauled to try and get it to process everything in one
122 pass, not two. It has been tested locally, but it could do with some more.
123 FlowPlayer3 now supports streamed playlists.
124 The file name functions now skip checks when working with streaming media.
125 It is now possible to use a streamed file located in a subfolder, simply include
126 the path, e.g. file="subfolder/movie.flv".
127
128 06 March 2009
129 -------------
130 Code for obtaining available methods simplified further - simply calls
131 module_invoke_all('swftools_methods') to trigger all modules reporting.
132 RTMP plugin for FlowPlayer3 now configurable on settings page.
133 colorpicker.js and colorpicker.css prefixed with flowplayer3_ to avoid any
134 (unlikely) namespace clashes.
135 FlowPlayer3 commented heavily to try and make this a good reference point for
136 future modules. Comments could probably be extracted to developer documentation
137 at some future point to slim down code.
138
139 05 March 2009
140 -------------
141 VERY early support for streaming of single flv files via JW4 and FlowPlayser3
142 players. More a proof of concept at this point as I haven't researched it! At
143 the moment the playes don't support playlists, but they seem ok for single
144 files (testing locally using Red5).
145 swf() function changed to support this - the file assignment for the filename
146 to a flashvar no longer uses the $file_url which remains internal to SWF Tools,
147 it now references $vars->othervars['file_url'] as this can be manipulated by
148 player modules. This is necessary to put the data in the right format for JW4
149 player. Player modules that don't manipulate that variable should be
150 unaffected.
151 File existence checks skipped for streaming files as they could be on a very
152 different path to the Drupal file system, so we'll not worry.
153 To use streaming with FlowPlayer3 the streaming plugin must be added to the
154 FlowPlayer3 shared folder.
155
156 28 February 2009
157 ----------------
158 Lots of tidying up of code done, and added many more comments. Added a number
159 of docblocks to try and describe what functions do.
160 Changed swftools_[player]_playlist function to be more consistent with Drupal
161 hooks so they are now [module]_[player]_swftools_playlist. This change appears
162 in all player modules. While minor it should make code a little easier to read.
163 Changed calls to such hooks to use module_hook as this is a bit clearer.
164 Moved code that defines the methods of SWF Tools itself in to a new function
165 swftools_swftools_methods(). This is more logical since it is actually a hook in
166 all other modules, so there is no reason SWF Tools should be any different.
167 Also moved code that merges the generic player methods to this function since
168 it makes the code that then assembles the available methods cleaner.
169 Modified swf() so that you can call it with an array of filenames, in which
170 case it will automatically prepare a playlist and return the markup - should be
171 easier for end users, although the old system of calling
172 swftools_prepare_playlist_data() and then swf_list() will still work.
173 Deleted swftools_swftools_flashvars() as this hook didn't do anything.
174 Refactored swftools_methods_available() as it didn't really need so many if /
175 else if constructs.
176 Added new function swftools_strip_base_root() that will try to strip the
177 $base_root part out of path. What this means is that local files are given a
178 relative path, rather than an absolute path. Not sure if this gives any real
179 speed gain, but it looks a bit neater, and if swf isn't working it would help
180 to highlight where an absolute path is being set.
181
182 26 February 2009
183 ----------------
184 Experimental - why have swf() and swf_list()? The swf() function can simply
185 detect if an array of filenames was passed, and if it was then it can call
186 swftools_prepare_playlist_data() and do what swf_list() does.
187
188 25 February 2009
189 ----------------
190 Initialise arrays in swf_list() function to suppress notice errors that are
191 generated when function is called without passing all settings.
192
193 23 February 2009
194 ----------------
195 Fix coding in swftools.admin.status.inc so it doesn't generate multiple
196 notice errors when rendering status report.
197 Admin form changed to use the constant FLOWPLAYER3_MEDIAPLAYER, which makes it
198 more consistent with code elsewhere.
199 Support for allowscriptaccess parameter added (in response to #380580)
200
201 22 February 2009
202 ----------------
203 Issue with patch #371615 identified as an issue with flash node and the way
204 Drupal handles null when writing to the database (converts to (int)0).
205 Flash node updated to fix this issue, so patch #371615 can be reinstated.
206
207 19 Feburary 2009
208 ----------------
209 Reverse part of patch #371615 as it breaks flash node auto detection of mp3
210 and flv files as flash node passes a zero, rather than empty.
211
212 17 February 2009
213 ---------------
214 Fix reset configuration options on Wijering and FlowPlayer.
215
216 16 Feburary 2009
217 ----------------
218 Minor fix to swftools_url_parse() to eliminate notice error when processing
219 strings of parameters.
220 swftools_flowplayer3_mediaplayer_playlist() simplified as it is not really
221 necessary to produce a valid xml file.
222 Tidy up use of . in concatanation of strings
223
224 12 February 2009
225 ----------------
226 #371735 - Fixed - incorrect construction of id tag in HTML.
227 #371615 by KarenS - fix lines that result in PHP errors when parameters are
228 not defined.
229
230 07 October 2008
231 ---------------
232 #308515 - Fixed - string used for determining extension was empty when a remote
233 file is being checked, so code changed to check a more appropriate string.
234
235 06 October 2008
236 ---------------
237 Appending the nocache string to filenames seems to have broken content, but
238 I'm sure it was working before. Recommitting without the cache setting until
239 I can be sure it is working right.
240
241 03 October 2008
242 ---------------
243 #314045 - Constants incorrectly defined - fixed.
244
245 23 September 2008
246 -----------------
247 Cumulative changes that address a number of issues.
248 Identification of default players on the admin screen was wrong.
249 swftools_get_media_url changed due to bug that resulted in double /
250 appearing in the file path (#308172).
251 Auto-detection of sizes changed so that players are always auto
252 detected even when a remote media url is configured.
253 Test content added to status page to help identify if SWF Tools is
254 working.
255 Missing php from <?php in swftools.admin.status.inc
256 Path to default background image generated using url() function.
257
258 6 September 2008
259 ----------------
260 First official release of SWF Tools for Drupal 6!
261
262 Text below describes what was changed as part of this release compared to v5.
263
264 swftools.module
265 ---------------
266 Menus updated to v6
267 Use of l() in filter fixed
268 Settings call backs updated
269 File checks in swf() modified to better handle local files(?)
270 _swftools_tf logic modified - was returning wrong values
271 allowfullscreen parameter added to _swftools_params and embedding generation routine
272 Text changed to sentence case for consistency with rest of Drupal
273 Assigning action in swf() occurred twice - one instance deleted
274 $nocache logic changed so caching string only appended once at the very end (not sure how this works)
275 swftools_get_media_url changed to use file_create_url - should allow private file system
276 Suggested fix for encoding in _swftools_get_flashvars_string applied
277 swftools_theme() added to allow theme function to be registered
278 Code that attempts to generate a valid base path altered to make a better guess
279 Base path made compatible with private file system
280 Fixes as per issue list at end of this document
281 Parameter list extended to better support macros
282 SWF Filter changed to be easier to use with other filters (<swf > is replaced
283 by [swf ] during the prepare phase, so the code isn't stripped by HTML filters.
284 [swf ] can be used directly when writing a filter. Filters can now be written
285 using just [swf file=""] or [swf files=""] and filter will use file/files to
286 determine if a playlist is intended. [swflist ] can still be used so old filter
287 entries will work as originally planned.
288 Filter amended to strip <p></p> from around the filter, to allow W3C validation
289 to pass.
290 Direct embedding mark-up changed to be standards compliant.
291 swf() function parameters altered - now works more like the rest of Drupal 6 as
292 an array of parameters is passed, rather than a series of parameters - pass an
293 array with (optional) keys params, flashvars, othervars, methods. Params are
294 passed to the generation code, flashvars becomes the flashvars string,
295 othervars and method are passed to SWF Tools handlers.
296 Check for existence of playlist directory (and creation as required) added to
297 swftools_get_playlist_path() so it is created without having to visit settings
298 page.
299 Constant SWFTOOLS_INSTALLED added to make it easier to notify other modules if
300 SWF Tools is available.
301 Adding js to every page now defaults to TRUE (and SWFTOOLS_ALWAYS_ADD_JS added
302 as a constant for code legibility). This means that SWF Tools behaves as
303 "expected" with filters, without users having to specifically set this option.
304 More descriptive messages when no player is configured, so users are directed
305 to the appropriate settings page.
306 Various drupal_set_messages made translate by use of t() function.
307 Wording of settings pages changed to make more consistent with rest of Drupal.
308 When playing media file_url is added to othervars['file_url'] so that player
309 modules can access the media file path if they need to. This is particularly
310 required for FlowPlayer to allow the appropriate config string to be built.
311 swftools_push_js() added to hook_init(), rather than hook_menu() since it is
312 technically not a menu function!
313 New code added to direct embedding to assign an object id to the outer (IE6)
314 object - without this JW Media Player 4 with IE6 causes pages to say they have
315 an error.
316
317
318 swftools.admin.inc
319 ------------------
320 Form creation code adjusted to suit v6 menu call back
321 Allow full screen parameter added to embed form
322 Missing files now generate a download link if the download key is set in the
323 methods array.
324 Settings page altered slightly to put all file handling options together (some
325 were under embedding settings). Means embedding settings is now simple for new
326 users.
327 Settings moved to sit under Administer > Site configuration > SWF Tools rather
328 than promoting SWF Tools to a top level below Administer.
329 Option added to file handling to allow SWF Tools to respond to requests to
330 access swf, jpg, jpeg, mp3, flv and xml under a private file system.
331 Cache flushing now calls drupal_flush_all_caches() which clears filters, block
332 and page caches, so is more likely to ensure changes to flash content are
333 properly rendered later.
334
335
336 swftools.admin.status.inc
337 -------------------------
338 Added a status page that generates reports much like the system status report.
339 Intent is to provide some diagnostics if an installation isn't working.
340 At the moment it can report on whether the embedding and playback features
341 appear to be correctly configured (methods are available, supporting files are
342 available etc)
343 Status report is found at admin/reports/swftools.
344
345
346 genericplayers.module
347 ---------------------
348 Menu updated to v6
349 Option to disable autoplay flv disabled as generic player always autoplays.
350
351
352 swfobject.info
353 --------------
354 Modified to v6
355
356
357 swftools.info
358 -------------
359 Modified to v6
360
361
362 swfobject.module
363 ----------------
364 Added a download key to swfobject_swftools_methods() so the admin form can
365 provide a link to the required files
366
367
368 onepixelout.module
369 ---------------
370 Menu updated to v6
371 Added a download key to onepixelout_swftools_methods() so the admin form
372 can provide a link to the required files
373 _swf() and _swflist() functions removed as redundant
374
375
376 wijering.info
377 -------------
378 Name string renamed JW Media Player 3 to make explicit to version 4 module.
379 Description string changed to make explicit this is for JW Player 3.
380
381
382 wijering.module
383 ---------------
384 Menu updated to v6
385 Added a download key to wijering_swftools_methods() so the admin form can
386 provide a link to the required files
387 _swf() and _swflist() functions removed as redundant
388
389
390 wijering.admin.inc
391 ------------------
392 wijering_admin_form_submit updated to forms API v6
393 Form routine tweaked to make it look more like a regular system settings form,
394 ie Reset to default option added to admin form
395 Confirmation message added to simulate settings form
396
397
398 wijering4.module / wijering4.admin.inc / wijering4.info
399 -------------------------------------------------------
400 Initial version of a module to support Wijering media player 4.
401 Some of the parameters have been renamed, some are gone, and some new ones
402 have been implemented.
403
404
405 imagerotator.module / imagerotator.admin.in / imagerotator.info
406 ---------------------------------------------------------------
407 Image rotator separated out from JW Media Player 3 - logically this is a
408 different module to the main player module, so it seems sensible to
409 have this as a separate package. To the end user it makes a logical
410 distinction between media players and the image cycler. Also, the JW
411 Image Rotator is still at version 3, so to have Media Player 4 and
412 Image Rotator 3 would mean enabling Media Player 3 which is counter
413 intuitive! Internally it still uses the name WIJERING_IMAGEROTATOR
414 so the existing variables are preserved, even though this is now a
415 distinct module.
416
417
418 lutman.module
419 -------------
420 Added download key to methods array to allow easy download.
421
422
423 lutman.info
424 -----------
425 Updated to v6
426 Is descriptor right? It says lutman is included, but it isn't?
427
428
429 ufo.module
430 -------------
431 Added download key to methods array to allow easy download.
432 Removed alert pop-ups.
433
434
435 ufo.info
436 -----------
437 Updated to v6
438
439
440 simpleviewer.module
441 -------------------
442 Menu updated to v6.
443
444
445 swfobject2.module / swfobject2.info
446 -----------------------------------
447 Support for SWF Object 2 added, and output made standards compliant.
448 Uses the flashvars in array format, rather than string form, to provide
449 clearer javascript, and seems to be working ok.
450 Original version of this module added the js to the page header, but
451 that causes content generated with filters to break!
452 js now added to page body, rather than header - remembered that when filter
453 caching is enabled the js won't get added to the page header!
454 New code added to assign unique id to the object (using swf followed by the
455 same id numbers as the div. Without this JW Media Player 4 with IE6 causes
456 pages to say they have an error.
457
458
459 flowplayer.module / flowplayer.info / flowplayer.admin.inc
460 ----------------------------------------------------------
461 Feature request under SWF Tools 5.1 asked for support for FlowPlayer.
462 This module introduces initial support, but more work needed at the
463 moment. Adding this module resulted in the changes to swfobject2 to
464 use the array format, and the addition of the media file path to
465 the resolved_methods array in SWF Tools itself.
466
467
468 Private file handling
469 ---------------------
470 Change to method of generating path seems to allow private files to work.
471 Tested with playback of a swf, and also an mp3 via generic and Wijering players.
472 If files are placed on the site via FTP then a SWF Tools option must be set
473 on the File handling page to allow SWF Tools to grant access to media files.
474 It allows access to swf, mp3, flv, xml, jpg, jpeg and png formats. If access is
475 denied by any other module then access is not allowed, so content that is
476 being protected by a module is not compromised by activating this setting.
477 The default setting for allowing access to private files is OFF, so to let
478 SWF Tools allow handling of private files it must be explicitly set by the
479 user on the settings page (Administer > Site configuration > SWF Tools >
480 File handling > Private file system).
481
482
483 General
484 -------
485 Broken identifier strings replaced with correct format
486 UFO and SWFObject 1.5 are both superceded by SWFObject 2.0 - new module written
487 but not tested extensively yet.
488 Configuration pages moved to sit under Administer > Site configuration > SWF
489 Tools, rather than having SWF Tools promoted to its own level.
490 Default HTML alt added as a constant for clarity, and wording made a little
491 more informative to assist users who don't see the content.
492 File locations settings moved from embedding page to file handling page. This
493 is more consistent, and presents new users with fewer options on the first
494 settings page. Most people probably never change anything other than the
495 embedding method at first.
496
497
498 Issue queue
499 -----------
500 218326 - Full screen does not work
501 166804 - Fullscreen option for JW PLAYER
502 153780 - Full Screen Support using Wijering Flash
503 Full screen now a parameter on the settings page, and passed to flash modules
504 to enable it.
505
506 191279 - Strange escaping behaviour of ":" and "/" and 1 pixel out Player
507 173021 - 1PixelOut - Error Opening File
508 154364 - input formats!
509 202591 - 1pixelout can't find file
510 Incorporated the suggested fix to reverse the encoding.
511 This probably explains "203301 - Error Opening File" as well.
512
513 178283 - Patch to fix bug in "base" parameter for direct embedding
514 Patch applied - base now properly set when using direct embedding mode.
515
516 179322 - variable_get for Flash Version incorrect
517 Suggested fix applied.
518 scale and swliveconnect had similar errors so fixed those too.
519
520 146935 - Menu titles get strange formatting because of surplus white space
521 Fixed
522
523 157397 - file path for attachment is wrong
524 Think this is fixed with modified file handling mechanism that was needed as
525 the "double files" issue occurred with flash node too.
526
527 252956 - Private Uploads and SWFTools
528 Should be fixed with new code that allows used of private file systems with
529 SWF Tools. Note - SWF Tools must be allowed to grant access to playlists.
530
531 294163 - Standards Compliant Flash
532 SWF Tools now produces standards complaint (XHTML 1.0 Strict) using either
533 direct embedding or via SWF Object 2 *in most cases*. The filter component
534 has been updated to string the <p></p> that wrap around the <div> containing
535 the flash, but if you use the format in the middle of a paragraph this won't
536 work properly and you will get code that FAILS validation. If validation is
537 important then you may need to test pages containing to SWF Tools content to
538 verify that they are validating properly.
539
540 181473 - FlowPlayer support
541 FlowPlayer support has been added.
542
543 233375 - Upgrade to 6.0
544 Here it is!
545
546 186896 - Wijering player w/playlist shows up on IE, not on FF or Opera
547 Have not been able to recreate this error, but seems to be ok under all tests
548 during develop of SWF Tools 6, so assuming can be closed.
549
550
551 ; $Id: CHANGELOG.txt,v 1.33 2009/03/30 22:19:12 stuartgreenfield Exp $

  ViewVC Help
Powered by ViewVC 1.1.2