Preloading audio

K

kevwash

Is there a way to pre-load mp3 audio, so that when a page calls the audio it
plays immediately.
 
B

Binu K [MSFT]

Hi

Have a look ate the following internet link.
http://www.experts-exchange.com/Web/Web_Languages/JavaScript/Q_20145348.html
http://www.javascriptkit.com/script/script2/soundlink.shtml

Hope this helps

regards
binuk
MSFT

This posting is provided "as is" with no warranties and confers no rights
--------------------
| Thread-Topic: Preloading audio
| thread-index: AcTX8GljDKWtuzlPQ2Gx07LBGPptmQ==
| X-WBNR-Posting-Host: 70.105.13.27
| From: "=?Utf-8?B?a2V2d2FzaA==?=" <[email protected]>
| Subject: Preloading audio
| Date: Wed, 1 Dec 2004 13:55:03 -0800
| Lines: 2
| Message-ID: <[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.frontpage.client
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGXA0
3.phx.gbl
| Xref: cpmsftngxa10.phx.gbl microsoft.public.frontpage.client:698089
| X-Tomcat-NG: microsoft.public.frontpage.client
|
| Is there a way to pre-load mp3 audio, so that when a page calls the audio
it
| plays immediately.
|
 
K

kevwash

Overall is there a code snippet or function that allows me to load files into
the users temporary location to be called immediately when needed.
 
D

DI

How to set up Streaming Audio in your FrontPage Web

In order to broadcast you'll need MP3 formatted audio files (they have the extension ".mp3"
just like documents have a ".doc" extension). You can find MP3s by searching the Web. Many of
your favorite songs are free and available for downloading directly onto your computer. You can
also convert any song from your CD collection to an MP3 file by following the steps below.

First, download and install a software program called a CD "ripper" which will convert the
songs you select to MP3 files. You can find assorted rippers on the Web, some are free and
those that aren't usually offer a trial period or standard version before buying. To make it
easy for you, I am including full instructions for MusicMatch Jukebox, which you can download
at http://www.musicmatch.com/download. Please note this file is pretty big at over 4 MB so it
may take a while if you're on a slow connection.

Hint: When you download MusicMatch, you will be asked to "run this program..." or "save this
file to disk." Choose "run this program..." Follow the installation instructions to complete.

Next...you're ready to start ripping! Most rippers will have instructions on how to rip and
save MP3s. If you downloaded and installed MusicMatch, you can follow the instructions below.

1. Create an MP3 folder

Organizing your MP3s will make your life a lot easier when you broadcast. The MusicMatch
Jukebox has a default setting that places MP3s into separate folders for each CD you rip. You
don't want that. Trust me. What you want to do is save all your MP3s in one folder or several
folders that make sense to you.

To do this, open your MusicMatch Jukebox program (click on the icon on your desktop, or find
it under your "start" menu), select "Options" (at the top of the Jukebox) then "Settings", and
then "Recorder". In the "Recorder" section select "Tracks Directory". You should now be in the
"New Tracks Directory Options" section. Under "Make Sub-Path using:", uncheck both "Artist" and
"Album."

Now you're ready to create a new folder for your MP3s or put them in a folder that already
exists in your file directory. In the little window under "Directory For New Songs:" you can
either type a file path for a new or existing folder or click the "..." button next to the
window to access to your directory.

Hint: Creating a new folder on your desktop is the easiest way to access your MP3s when
broadcasting. To do this, either type in the file path with a new folder name or click on the
"..." button and select "desktop". Be sure to add a "\" and a folder name at the end of the
file path to create a new folder. Click "OK".

2. Select the songs you want in your broadcast

Insert a CD into the CD drive on your computer. After a few seconds, you should see all the
tracks on the CD appear in the" Recorder" section of the Jukebox. You may need to click the
"rec" button to see this window. Now, select the ones you want to rip by clicking in the
corresponding check boxes. You can unselect a track by clicking the check box again. To rip all
the tracks on the CD, select 'All'. Click "OK".

3. Select the correct bitrate
Click the "Options" button at the top of MusicMatch. Then click "settings." This window will
open:

Click the "Recorder" tab. This window will appear.

Under "Custom Quality" click "MP3 CBR" and adjust the sliding control to the bitrate you
desire. Here's how you decide:

bitrate what happens
greater than 56Kbps Not recommended. This bitrate is too high and will cause skipping in your
broadcast.
56 Kbps High quality, but only listeners with high bandwidth can enjoy.
32 Kbps Medium quality, and listeners with 56K connection and higher can listen.
24 Kbps Lowest quality (similar to AM radio), but everyone with 28.8K connection or higher can
enjoy.

4. Begin ripping
Click the " REC " button in the Recorder section to rip the songs you selected MusicMatch
will convert them to .mp3 files and automatically save them to your MP3 folder. It will take a
few seconds for each song but less than the actual playing time.

When you're ready to rip a new CD, just repeat steps 2 and 3. When you're done, you can close
your ripper. Then you can look inside the folder you created to see all the MP3 files you just
ripped.

5. Convert

To convert your MP3s to a different bitrate.

Open MusicMatch Jukebox and go to:

File....Convert....on the slide bar set the bitrate to 56Kbps, or 32 Kbps, or 24 Kbps.


6. When finished with MP3s

Get the Windows Media Add-in from link below and install it.

http://www.microsoft.com/frontpage/downloads/addin/searchdetail.asp?a=50

7. User Instructions

Open a Web in FrontPage. Embed the Windows Media Player by selecting "Insert / Windows Media
Player". At this point the Windows Media Player Add-In Wizard is opened:
1) Select Audio or Video content.
2) Browse for the content you wish to embed. You may add multiple audio and video files and
use the wizard to determine what order you want them to play in.
3) Select the controls you wish to appear in the Web page (no controls, status bar, full
controls). These controls will enable the user to start and stop the playback of the media.
4) Select the playback options, such as the number of times you wish the media file to play,
whether the file should start automatically etc.
5) Hit Finish and the Add-In does the rest behind the scenes. You can now preview the
embedded Windows Media content in FrontPage.
 
J

jvles

kevwash said:
Is there a way to pre-load mp3 audio, so that when a page calls the audio it
plays immediately.

Yes. Rightclick on the page, click on Page Properties, then enter the
..mp3 file in Background Sounds. For some strange reason, browsing for
files will not show an .mp3 file, so you need to type it in manually.
You can also select whether you want to play the music continuously, or
stop it after n iterations.
The nice thing about this method of playing a sound file is that the
program that actually plays the file (Media Player, etc.) does not come
up to overlay your page. This is unlike hyperlinking a music file to an
area of a page via a Hotspot. When you do that, the program that plays
the file overlays your page. You can minimize it, but it's annoying, to
say the least. I still have not found a way out of this issue.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top