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

  • RT @MRCampaigns: Google now flags when sites aren't mobile friendly -- considered yourself warned! #Optimization #FTW! http://t.co/1qwbcoNG…
    July 22, 2014 - 10:29am
  • Link going around the office today: @amyschumer on teaching mom to use the computer. http://t.co/NRauPPppVs
    July 21, 2014 - 3:49pm
  • It's the last day to vote for #NTC15 sessions! If you're a consultant or nonprofit interested in #agile, vote here: http://t.co/EhecZ26fCk
    July 18, 2014 - 2:15pm
  • Love Super Mario Bros? How about cuteness? Advo-front-end developer Jack made probably the awesomest kid's room ever: http://t.co/WIobr5YEDQ
    July 18, 2014 - 11:15am
  • From our staff meeting today: "I saw the Rifftrax for... what's the people?...'THERE CAN ONLY BE ONE!'?" http://t.co/HwLjtcaP8A
    July 17, 2014 - 3:15pm