See Martin's solution for inserting streaming mp3's at the bottom of this page
See Rami Mawas solution at http://rami.mawas.googlepages.com/gpctips#2
First try
Coldplay-ClocksRoyksoppTremblingHeartRemix.mp3
I uploaded the mp3-file using the upload function on the Page Manager page. Then, in Page Creator, I made a link to the mp3-file.
Clicking on the link above plays 10-15 seconds of the music in Internet Explorer and in SeaMonkey (Mozilla). Why not the rest? Is this to prevent the illegal spread of music, or am I doing something wrong?
Second try
I used this piece of code that I inserted using the Edit HTML button in Page Creator mode. (thanks to Pakattack161 - see the forum)
<embed src="filename.mp3" autostart=true loop=1> </embed>
Initially the code is accepted in Edit-mode, a player control appears and the music plays for 10 seconds or so.
When you try to publish or to save nothing happens. Even after 10 minutes the code is not saved, nor can a preview be generated. The picture below is a screen shot of what I get to see during "saving".
When you cancel the save operation after 10 minutes and look at the html code, you will see that "Google" has deleted the embed code completely.
Third try
Following another suggestion from Pakattack161 I will try to insert an mp3 as background music using this code:
<bgsound src="filename.mp3" loop 1>
In case you are interested to know what happens, read again what I wrote under "Second try".
Fourth try
Well, I found out that while the mp3 that I uploaded is 1.8 Mb, the file that is in my list is only 1 Mb. So, I guess that Google uploads only about half my file, thus preventing me from illegally spreading music.
So this time I will try to use a file that is hosted at www.streamload.com where I have a FREE 25 Gb account.
What happens? When you click the link above, the file downloads to my computer, MusicMatch starts up and plays the file :-)
So there is a way to play your favourite music from your website, within the original Google Page, and without the need to do hocuspocus with html-code.
MP3 Streaming from your Site
Ok, so lots of bands are gonna start setting up google pages, or poeple who want to play music to their visitors well here is a way of doing it. It is by know means the only way.
First of all before you start this will not work on your initial home page but it will work on all sub pages. This is because you cannot upload a HTML file as your initial home page and the edit HTML does not support embed tags.
Download this javascript file as this will be required to play the music later.
Create the page you want to put music on. Publish the site and navigate to it. Click in your browser on view source and save the source code to your computer.
Open the file up and between the somewhere between <head> and </head> (this is near the top) add the following code:
<script language="JavaScript" type="text/javascript"
src="soundpop.js"></script>
Within your page and in one of the frames that you have typed text add the following code:
<object width="0" height="0">
<param name="src" value="FILENAMEHERE.mp3">
<param name="autoplay" value="true">
<param name="controller" value="true">
<embed src="FILENAMEHERE.mp3" autostart="true"
loop="true"
width="0" height="0" controller="false"></embed>
</object>
Replace FILENAMEHERE.mp3 with the name of the MP3 that you would like to play to your visitors. Save this page to your computer. Now go to the page manager in google pages.
On the right hand side you are able to upload files. Click browse and upload your the javascript file that you, saved earlier, the HTML file you have adjusted and the mp3 that you would like to play on your site.
On your home page etc. create a link to your new page which will be called.
http://YOURLOGIN.googlepages.com/pagename.html
When you browse this page you should be able to hear music as shown on the example page.
Please note that this plugin uses quicktime player, and so if you do not have the quicktime extension installed it, will not function correctly.
Special thanks for code goes to the O'Reilly site for demonstrating how use javascript for such mp3 media.
