I would like to embedd mp3 files to my content using flash node and SWF Tools. The mp3 files are organised in subdirectories. When I embed any file from /flash/ (default directory) it plays well. But i want to embed other files from other subdirectories of my site.

is OK

but

and are giving me error message "You are missing some Flash content that should appear here! Perhaps your browser cannot display it, or maybe it did not initialise correctly."

What is the problem? Please help. (I posted this in forum but no reply from anybody, hence this post. Sorry)

Regards,
-S-

Comments

Stuart Greenfield’s picture

Flash node automatically places all its uploaded files in /flash, so it can't accommodate subdirectories. There have been requests to enable multiple directories but I haven't implemented that, and not sure if I will.

If you have the content in other directories you could embed it using the SWF Tools input filter. If you activate that for a content type then you can insert an mp3 in a player using <swf file="/path/to/myAudio.mp3"> and reference any subdirectory (or even an external url).

The mp3 player will be rendered in your default mp3 player, as set in the SWF Tools options.

sunilkumar’s picture

Stuart Greenfield,

Thanks for the reply. Can you please explain how to activate SWF Tools input filter? After activating this, can I arrange my files in special sub directory and sub-sub folders in public_html folder or anywhere in the site?

Thanks again and sorry for dump questions

Regards,
-S-

Stuart Greenfield’s picture

Take a look at the handbook page about the input filter - that explains things.

As to where can you put files, the anwers is "anywhere that is accessible to your website!"

The input filter uses the form <swf file="/path/to/my/file"> or <swf file="http://myserver.com/some/arbitrary/path/to/file.mp3">

So hopefully you'll be able to structure your site as best suits you and get it working.

sunilkumar’s picture

Thanks Stuart. Let me try in this evening.
Regards,
-S-

sunilkumar’s picture

I tried by adding the input filter. It give me error "file appear not to exists" even though the file is in my public_html in a sub-sub folder. I gave the path correctly.

Javascript is added in to every page. Is that a problem? Direct embedding is tick marked. I tried inf firefox and IE.

If the file is in /flash/ folder it works great!

Regards,
-S-

sunilkumar’s picture

Status: Active » Closed (fixed)

Thanks Stuart.

I found the problem. My folder name was two word, example "my music". I renamed the folder to "mymusic" without any spaces in between the words. Now it works fine!

Please mention this also in the handbook for others. No space or other extra characters in the file name and folder name.

Changing the status to "closed"

Regards,
-S-

Stuart Greenfield’s picture

Title: embedding mp3 audio files » Spaces in path break file detection
Status: Closed (fixed) » Active

I'm glad you got it working.

I'm going to re-open this thread, but change its title to "Spaces in path break file detection". Using spaces is something that happens and I'd like to try and fix it properly.

sunilkumar’s picture

Not only spaces, Stuart. Sometimes I was using "," (coma) in my file name and it was not working. Now I removed such extra characters and spaces, all OK.

Off topic: "Spaces in path, break file detection" seems to be technical (language) :):)

Regards,
-S-

foripepe’s picture

I'm not sure my problem is the same, but I get page not found error, when I use filepath with space.
I just upgraded my Drupal to 5.17. Bug in the latest Drupal 5 and 6 versions?

foripepe’s picture

Ok, I have fixed my bug. I didn't notice, the programmer, who wrote the original code of one of my module didn't use file_create_url() function.
Now everything seems fine.