Embed MP3 Player in Your Webpage
In previous entry you find an audio file (MP3) is played within the post. How did I make it? In fact it utilizes the Google Audio Player (GAP), which is introduced in Gmail service at the beginning. See it below.
Google Audio Player without loading audio files.
Source code is:
src="http://mail.google.com/mail/html/audio.swf" style="width: 400px; height: 27px;"
Google Audio Player with loading a MP3 file, hosted in Google's server.
芝华士(Chivas)广告歌
Source code is:
src="http://mail.google.com/mail/html/audio.swf?audioUrl=http://meteorfalling.googlepages.com/mp3" style="width: 400px; height: 27px;"
For Internet Explorer, Once the audio file doesn't hosted in Google's server, Google will choose WMP (Windows Media Player) instead of GAP as its player. For Firefox this limitation does not exist. Fortunately I found out a solution at Oasis Feng's blog site to eliminate the limitation for IE users.
Google Audio Player with loading a MP3 file, hosted in Chivas HK website, NOT in Google's server.
芝华士(Chivas)广告歌
Check out the source code by view this page's source.
0 Comments:
Post a Comment