Home-Brewed Drupal Media Player in the Works!

Here’s a sneak peek of the new flash Drupal Media Player, developed by yours truly with OpenLaszlo!

Obviously, it’s still rough on the edges, and all the options in the theme function aren’t hooked up yet. Although it works already (after a fashion), don’t use it yet unless you’re willing to suffer the consequences.

lz.embed.swf({url: ‘/sites/all/modules/media_player/bundled_flash_player/media_player.lzx.lzr%3Dswf8.swf?lzproxied=false&file=http://drupal-multimedia.org/files.dm/videos/20051210-w50s.flv&display_logo=1&logo=/sites/all/modules/media_player/bundled_flash_player/resources/druplicon.png&color_bg=black&image=/sites/all/modules/media_player/bundled_flash_player/resources/druplicon.png’, bgcolor: ‘black’, width: ‘500’, height: ‘400’, id: ‘media-player-2’, accessible: ‘false’});

Please enable JavaScript in order to use this application.

When it’s done, this module will come with its own player, fully GPL’d, and will support others out of the box as well, such as JW Flash Media Player and Wimpy. But who’s going to want those anymore?

The module adds theme functions and a simple API that should be easily usable by other media modules, such as Embedded Media Player, jQuery Media and whoever else wants to jump on board. The other modules won’t need to worry about where a particular player lives or how to invoke it; the theme functions provided will be robust enough to handle player colors, sizes, icons (including placement, layout, and other customization options), splash screens, playlists and more. Administrators will be able to override any of the defaults, including player of choice. Additionally, it’ll be easy enough to invoke manually as well:

print theme(‘media_player_player’, $filepath);

And best of all, since it’s in OpenLaszlo and GPL, with the source included in the module, it’s easy for developers to modify even the player, without even needing a Flash IDE. (The whole thing is created with an XML.)

Kudos to EclipseGc for nudges and encouragement to get this project going!

Next on the list: volume controls, playlists, override color/logo/splash options, settings pages, pull in the other players, youtube/blip.tv/other provider support, tie into other media modules

(Cross-posted at gdo.)