inserting music onto page(s)

Q&A about Fusion 10

inserting music onto page(s)

Postby gprit » Thu Feb 25, 2010 2:41 pm

What is the best way to do this?
I tried a few different formats and the only one I could get to work with no issue was teh itunes format.

I'd like to add .mp3 and/or .wav formats. I don't want any symbol appearing on the page...just for the music to start when the page is loaded...and loop around.

thanks
gprit
 
Posts: 70
Joined: Thu Sep 04, 2008 10:39 am

Re: inserting music onto page(s)

Postby admin » Thu Feb 25, 2010 4:25 pm

gprit wrote:What is the best way to do this?
I tried a few different formats and the only one I could get to work with no issue was teh itunes format.

I'd like to add .mp3 and/or .wav formats. I don't want any symbol appearing on the page...just for the music to start when the page is loaded...and loop around.

thanks


Music that loads and can't be turned off will chase many people away.

But if you must, try using an EMBED tag. Place a text box and use Ctrl+T to insert the code.

Code: Select all
<EMBED src="pathto/yourfile.wav" autostart=true loop=false volume=100 hidden=true><NOEMBED><BGSOUND src="pathto/yourfile.wav"></NOEMBED>


The above is for a .wav file only. They're natively supported by web browsers. The downside, of course, is that the files tend to be huge. Anything over 10 seconds long isn't real practical.

Embedding a MP3 file is possible, but normally requires a player. An not all web servers are set up with the mp3 MIME type to allow playback.

You can try to embed your mp3 files in a similar manner to wav files:

Code: Select all
<EMBED src="file.mp3" autostart=true hidden=true>


This will work on some servers (depending on the MIME configuration).

For better streaming use a text editor to make a "m3u" file with one line something like this:

http://www.yoursite.com/pathto/yourfile.mp3

Save the file as "filename.m3u" and upload it to your site. On your web page, embed the mp3 file like this:

Code: Select all
<EMBED src="filename.m3u" autostart=true hidden=true>


Chuck
User avatar
admin
Site Admin
 
Posts: 1239
Joined: Mon Oct 24, 2005 2:07 am
Location: Orlando, FL

Re: inserting music onto page(s)

Postby gprit » Fri Feb 26, 2010 7:03 am

Phew - thanks Chuck...sounds a bit messy.
I managed to insert an itunes format piece of music using the General tab of the Properties panel. It only seems to work properly with the itunes format (M4a). Will give your suggested way a go over the weekend.

1) In Page view, select the Layout or Layout Region.
The General tab of the Properties panel appears.

2) To assign a sound to a Layout that plays when a site visitor views the page:
Select Sound. In the Background Sound dialog, click Browse and select a sound file from your hard disk.

3) Setting Layout and Layout Region Background Properties
You can use sound files in .au, .aiff, .midi, .ram, or .wav formats.<<<<<<<<<plus M4a
b. To repeat the sound while the page is open, select Continuous Loop.
c. Click OK.
The selected sound plays when you preview the page.

Note: Site visitors must have a sound board, speakers or headphones, and a browser that supports background sounds installed on their computers to hear background sound. To preview and test sounds, your system must also be appropriately configured. Some sound formats also require support from the Web server.
gprit
 
Posts: 70
Joined: Thu Sep 04, 2008 10:39 am

Re: inserting music onto page(s)

Postby gprit » Thu Mar 11, 2010 10:16 am

Still trying the best way to do this for someone who may not have a player installed(!)
Not really knowing html I am not sure where to put the embed statement (previous reply). I also came across some tutorial that included pretty much the same thing as that indicated, but again I am not sure where to put the OBJECT code inside the NOF code. Have tried several places but still will not stream.

<OBJECT ID="MediaPlayer1" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab# Version=5,1,52,701" STANDBY="Loading Microsoft Windows® Media Player components..." TYPE="application/x-oleobject" width="280" height="46">
<param name="fileName" value="http://www.libertybs.co.uk/music/music.m3u">
<param name="animationatStart" value="true">
<param name="transparentatStart" value="true">
<param name="autoStart" value="true">
<param name="showControls" value="true">
<param name="Volume" value="-300">
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="http://www.libertybs.co.uk/music/music.m3u" name="MediaPlayer1" width=280 height=46 autostart=1 showcontrols=1 volume=-300>
</OBJECT>

...the music directories are on the server, and the .mp3 file is inside music.msu........as it seems I should be able to place several within there to play one after each other.

thanks
gprit
 
Posts: 70
Joined: Thu Sep 04, 2008 10:39 am

Re: inserting music onto page(s)

Postby admin » Thu Mar 11, 2010 10:54 am

gprit wrote:Still trying the best way to do this for someone who may not have a player installed(!)
Not really knowing html I am not sure where to put the embed statement (previous reply). I also came across some tutorial that included pretty much the same thing as that indicated, but again I am not sure where to put the OBJECT code inside the NOF code. Have tried several places but still will not stream.

<OBJECT ID="MediaPlayer1" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab# Version=5,1,52,701" STANDBY="Loading Microsoft Windows® Media Player components..." TYPE="application/x-oleobject" width="280" height="46">
<param name="fileName" value="http://www.libertybs.co.uk/music/music.m3u">
<param name="animationatStart" value="true">
<param name="transparentatStart" value="true">
<param name="autoStart" value="true">
<param name="showControls" value="true">
<param name="Volume" value="-300">
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="http://www.libertybs.co.uk/music/music.m3u" name="MediaPlayer1" width=280 height=46 autostart=1 showcontrols=1 volume=-300>
</OBJECT>

...the music directories are on the server, and the .mp3 file is inside music.msu........as it seems I should be able to place several within there to play one after each other.

thanks


I tried going directly to http://www.libertybs.co.uk/music/music.m3u in a web browser and it says Forbidden.

So that's one problem.

Is music.m3u (or .msu... you typed it both ways in your post) a folder?

You say you have the mp3 file inside music.msu.

So, I'm confused.

A .m3u file is a text file that contains a multimedia play list.

Chuck
User avatar
admin
Site Admin
 
Posts: 1239
Joined: Mon Oct 24, 2005 2:07 am
Location: Orlando, FL

Re: inserting music onto page(s)

Postby gprit » Fri Mar 12, 2010 4:51 am

Been back and fore with hosting support re the forbidden access/pemissions. Here is the end reply after trying a number of things:
===========================================================================================
Hi Graham,
Thanks for the reply. It appears to be the .htaccess file in the public_html folder that is causing this as it instructs the browser to look specifically for default.html and index.html files within the folder if a path is not specified which in this case it is not:

DirectoryIndex default.html index.html

I don't believe there is a way to list files once that line has been entered, I have had a quick search for information but I'm afraid I cannot see a way around that issue.
===========================================================================================
To clear up the other confusion:
a) It is an m3u file...
b) Yes I set up the files wrongly - think I have now got them correct. The music.m3u file contains the playlist...and the only one there at the moment is the SeaFields.mp3.

I'll try moving these files out of music to public_html later today see if that makes a difference.

thanks
Attachments
Filezilla.002.jpg
Filezilla.002.jpg (33.65 KiB) Viewed 84 times
gprit
 
Posts: 70
Joined: Thu Sep 04, 2008 10:39 am

Re: inserting music onto page(s)

Postby gprit » Fri Mar 12, 2010 5:54 am

Update:

My Hosting company created a default index page in the music folder and followed the details highlighted in the article to try and get this working, however this has not this worked. They only managed to get just the mp3 to embed in a html file. They recommended contacting the creator of the article.

I think it's time to leave this avenue. There is some software I have identifed that converts the .mp3 files into .swf files that can be imbedded into NOF. My issue with that at the moment is that it doesn't seem to want to install into Vista(!).

Thanks
gprit
 
Posts: 70
Joined: Thu Sep 04, 2008 10:39 am

Re: inserting music onto page(s)

Postby gprit » Mon Mar 29, 2010 10:41 am

Update for all those interested...
MP3 Sound Stream works fine with Vista(!). This is such a simple way to add .mp3 or .wav files.
Just define what file you want to play, whether looping or not (can have stop/pause buttons if you wish), then just run through he software which creates good quality streaming sound via a .SWF file that can simply be dropped onto the page with the standard Flash component.
Streaming means it plays even if the viewer does not have any music player installed. Great product.
gprit
 
Posts: 70
Joined: Thu Sep 04, 2008 10:39 am


Return to Fusion 10

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest

cron