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.)

Contact Us

About Aaron Winborn

Aaron Winborn was Advomatic's first full time hire in 2006, and is a very active leader in the Drupal community. His first book, Drupal Multimedia is now available from Packt Publishing.

AdvoTwitter

  • .@Webmeadow's amazing advice on how to make sure your brilliant content strategy actually sticks in real life: http://t.co/R7cuHlc8dl
    October 24, 2014 - 11:16am
  • Hey, Hamilton/Niagara area! Our Tech Lead, Dave, will be at tonight's #Drupal Meetup. Find him and say hi! http://t.co/jEby9VUan7
    October 23, 2014 - 12:15pm
  • Is your nonprofit ready for #GivingTuesday? @Purpose and the @GivingTues team are hosting a panel in NYC on 10/29: http://t.co/ZXp5EfPkrC
    October 21, 2014 - 12:15pm
  • RT @yurylifshits: Now, this is how you teach CSS coding for everyone #webdesign http://t.co/gIhAWxJOsU
    October 20, 2014 - 5:10pm
  • "What was going on in 1984 that made so many women give up on computer science?" Great @planetmoney listen: http://t.co/7FpnnlePvG
    October 20, 2014 - 12:15pm