Can't play MP3s with flash??

hugeknot - July 9, 2008 - 11:48

All I want to do is to have an MP3 player play a file or two at certain placed on a 'page'. In basic html, it only takes a few lines of code, but with Drupal I have been trying desperately to solve this simple issue.

I have Audio, SWF tools and Flashnode.

At first it was working with flashnode, I succeeded in putting a flash node macro in a page. Then, for some reason I had to replace all the audio files and found that I could no longer play them!! 'Waiting for: www.burnmybanjo.com

I tried importing them as audio nodes and using an embed function, no!

I configures SWF tools to be able to place tags in my page, great but no! all I got was this 'waiting for: www.burnmybanjo.com' message.

My flash files are fine, but when I try to play mp3s via flash, it all goes quiet!

Any ideas??

I should add that although

hugeknot - July 9, 2008 - 12:15

I should add that although the onepixelout player is active in the 'audio' module and is in both the module and shared folders of 'SWF tools, it is still regarded as 'missing' accoring to SWF tools.

This is the page:
http://www.burnmybanjo.com/drupal/taxonomy/term/1

Come together

I have wasted a whole day on

hugeknot - July 9, 2008 - 19:18

I have wasted a whole day on this now!
I tried an install of Drupal 6, but there just aren't enough media modules to do this simple task.

While drupal has been the perfect solution for my community site, a simple task such as adding audio to a page has turned into a nightmare.

This is a content management system that cannot manage a very common form of content! Sort it out Drupal!!

Ticked off :(

Come together

i know the feeling...

retrospec - July 9, 2008 - 20:04

...to understate it. I had to look at a ton of posts and the Audio module project page to get the ball rolling. None of them had a clear answer, but double-checked a few basic things. I eventually pieced things together enough to finally get my Audio module straightened out (under 5.7). I've found out that SWF Tools has a couple of kinks with directory recognition too.

Make sure that you have the following done:

1) Make sure that Default flash player path is empty (Administer --> SWF Tools --> Embedding settings), JavaScript Embedding is set to "Embed Flash Directly..."

2) Make sure that getID3 library is up and recognized (Administer --> Site configuration --> Audio settings).

3) Double-check file paths (slashes, etc. too) on configuration pages, file permissions and file locations on your server/dev. All players should be in "sites/all/modules/swftools/shared" (unless otherwise. either way, make sure that you have Drupal looking in the right spot) and those files (along with your audio files) should be 755.

4) Might also want to set what ever player you're trying to use to autostart playing your MP3 (ex. Administer --> SWF Tools --> 1 Pixel Out --> Autostart (change to yes)". Right now, I'm having minor issues with the CSS and Firefox in Linux. The player won't stay on the page once it has finished loading, but will show up as the page is loading. In every other browser, it's fine though. I wouldn't have noticed this if the sound wasn't playing despite the player being visibly missing.

5) Run update.php once you've made your major file permission changes (just in case).

6) Make sure that your audio files are high quality (44100 khz WAV or 192kpbs+ MP3) for starters. This will help with initial troubleshooting - definitely.

7) Install Media Field Display (http://drupal.org/project/mediafield_display). Pretty helpful for giving audio file details (kinda ties into #6).

Let me know if you have any questions and I'll try to help (will try to find links I used also) :/

Many thanks!

hugeknot - July 9, 2008 - 21:26

I am giving Drupal a rrest for the night ans I am playing with xoops, just half an hour into it and I have a page exactly how I want it with mp3 images ect.

Come together

Trying again...

hugeknot - July 11, 2008 - 23:39

...because there is nothing out there quite like Drupal!

Can you have a look at this page:
http://burnmybanjo.com/drupal/?q=node/96

what do you see? what do you hear?

The first file plays, but not the second!

I went through your points like a check-list.

One thing that concerns me is that the only player I have on SWF Tools is the generic one. The other players have folders at
'sites/all/modules/swftools', but they are displayed as 'missing' in the 'file handling' section.

I hope you (or someone) can help because although my xoops site is up and running and doing what I want it to, it just doesn't have that DRUPAL feel!

Look at Wimpy Player?

sciman - July 11, 2008 - 23:45

I know the frustration. I can only do pretty simple things. I wanted something like you have in mind and looked around only to learn that some of the key modules aren't quite ready yet. But I heard about Wimpy Player, and you might look at that, though it's not Flash. I uploaded in Drupal 6 with the audio module, and could find the path by looking where the files got put. I created a folder for swf stuff for Wimpy Player, then in a block put in a jukebox using All html. Whistle for tips if you try and get interested. There are tons of choices on skins, and all seemed to work. Into the directory under Drupal you actually run a php program which generates the code you need for all the choices about auto-start, looping, etc. Skins vary from simple on-off buttons to elaborate displays. They have a freebie to play one song, and then Rave for more of a jukebox setup. I have it running now at http://www.homebandb.com if you'd like a quick demo.

Thanks for that, I tried the

hugeknot - July 12, 2008 - 10:56

Thanks for that, I tried the wimpy player and generated the code, but nothing showed on my webpage!

I have tried a standard embed code, but the browser wants to install unknown plugins.

I have tried 'Macro Flash nodes' 'SWF commands' and the result is the same each time... only the first file plays.

I am going to search beyond drupal now to see if it is maybe a server issue of something at my end.

Half Way There;-)

sciman - July 13, 2008 - 02:49

It's challenging getting all of the addresses to work if you're using the online version of the tool. It seems that you want more than one tune, and so you will want the Rave player. When you download and uncompress that, you can upload the file to your files directory? Then you aim your browser to it and make your choices of skins, etc. Working with the large bunch of choices, be sure about the last button.. turn off java code, and have the utility in your own directory produce all of the html. Then be sure that when you put the html into a new block (add block, be sure your input is set for full, and not filtered html.. and all should work well.) I can't imagine why your browser would be wanting to download any additional plugins.

Thanks for all your suggestions!

hugeknot - July 13, 2008 - 17:49

Actually I wrote to my host and strangely enough the standard 'embed' tags started working, So now I have everything up and running very quickly. I am using the flashnodes to generate the tools on the guitar tools page... and that works just fine!
http://burnmybanjo.com/

I still can't play beyond the first file!

utter-joy - August 8, 2009 - 18:41

Hi all! I'm still having a similar problem, and can't seem to find any further information either. I'm using Drupal 6, SWF Tools 6, and have tried the XSPF module, the SWF Tools playlist configurations, the JW Media player, and the genaric players in various combinations. I only get the first file from a playlist, and depending on whether I attach files and generate a playlist on the fly, or upload a playlist and audio files manually, I either get no error message, or a message "Flash player can't be displayed because the file amp; does not appear to exist." Any further ideas would be greatly appreciated . Thank you.

Kevin

 
 

Drupal is a registered trademark of Dries Buytaert.