eBook authors eBook Software - create and publish your own ebooks
Create your own eBooks
 
   
EBookApprentice.com
Learn How To Create, Publish & Market E-Books
 
   
EBookCompiler.com
E-Book Creation Software
 
   
EBookPower.com
Add sophisticated multimedia to your E-Books
 
   
CoverFactory.com
Create E-Book covers in minutes
 
 
  EBookSubmit.com
E-Book Marketing & Promotion made easy
 
  EBookJungle.com
Search engine for E-Books
 
  EBookInterviews.com
Interviews with eBook authors
 
  EBookEnhance.com
Tools for building better eBooks
 
 
 
Archived Message:

Adding sound


 
JCoelius Hi all! First of all, I'd just like to say that I really like
the Activ E-book Compiler program.  Is it possible to add *.wav files to your e-book?  If so, how?  Thanks!

JCoelius


Posted on: 9:54 am on February 25, 2001
EBookCompiler Hi there

OPTION #1

Basically you need to code this using the Internet Explorer sound commands
(which are different from netscape's)

The way that works best in Internet Explorer is to use the BGSOUND tag

if you want a page to play a sound when it loads, use the BGSOUND tag,
inside the head section, like this:

<HTML>
<HEAD>
<BGSOUND src="bgsound.wav">
</HEAD>
<BODY>
BODY-elements
</BODY></HTML>

There is a description of this tag, here
http://utopia.knoware.nl/users/schluter/doc/tags/TAG_BGSOUND.html

Here's a sneaky way that would work nicely

1. Say you have a playlist of 10 songs,   make a link to a different web
page for each song, don't put any actual sound commands in the file, and
then save the file as index.htm (or whatever)

e.g. index.htm contains stuff like this
<A HREF=song1.htm>Play song 1</A><BR>
<A HREF=song2.htm>Play song 2</A><BR>
etc.
<A HREF=song10.htm>Play song 10</A><BR>

2. Copy index.htm to song1.htm.  Add the BGSOUND tag I showed you above to
song1.htm, and use this to play the first song

3. Copy index.htm to song2.htm .  Add the BGSOUND tag I showed you above to
song1.htm, and use this to play the second song

etc.

OPTION #2

Alternatively - another way to do this would be to use the Activ Script
feature of Activ E-Book Compiler (the other way is to link to the sound
file, in which case you will get a popup box which it sounds like you don't
want).

Here how to code play a sound file, using Activ Script
- let's say the sound file is called  music.wav
- use sndrec32.exe if you want to use the Windows sound record accessory to
play the sound, or mplayer2.exe to use the Windows media player (this plays
videos too)

1. If the music file is part of the E-Book source  (shown in the files tab)
<A HREF="##RUN('sndrec32.exe {ebook}\music.wav')">Click here</A>

2. If the music file is a separate file, say in the same directory as where
the E-Book Output EXE is located
<A HREF="##RUN('sndrec32.exe {app}\music.wav')">Click Here</A>


OPTION #3

Finally the third way that I can think of would be to use our forthcoming
multi-media extension module, which will add a lot of flexibility for
manipulating sounds, over and above what you do in IE.


OPTION #4
....oh and I just thought of another way

There are some Java applets around that play audio.  These work nicely and you could stick them into an E-Book .  I think however they mostly work with Java's .au format.  However if you have a sound editing program, you maybe could convert the files to this format


Posted on: 1:48 pm on February 25, 2001
Veeger Here's a Javascript that works. I use this within the body tags. And it works with Netscape and IE. Change the loop to False if you want it to play only once.
------------------------------------------------------------
<BODY>
<SCRIPT language="javascript"><!--

if ( navigator.appName == 'Netscape' ) {
  document.write( '<EMBED SRC="kiss.wav" WIDTH="0" HEIGHT="0" AUTOSTART="true" LOOP="True"></embed>' );
} else if ( navigator.appName == 'Microsoft Internet Explorer' ) {
  document.write( '<BGSOUND SRC="kiss.wav" LOOP="True" VOLUME="1200" DELAY="8" WIDTH="0" HEIGHT="0">' );
} else document.write( '<BGSOUND SRC="kiss.wav" LOOP="True" VOLUME="1200" DELAY="8" WIDTH="0" HEIGHT="0"><EMBED SRC="kiss.wav" WIDTH="0" HEIGHT="0" AUTOSTART="true" LOOP="True"></embed>' );

//-->
</SCRIPT>
</BODY>


Posted on: 5:19 pm on March 3, 2001

Search

List All Archived Forums



Copyright © 2000-2021, Answers 2000 Limited.

With any business, it is up to the individual owner of said business to ensure the success of the business. You may make more or less than any sample figures or results that might be quoted on our web sites or other publications. All business involves risk, and many businesses do not succeed. Further, Answers 2000 Limited does NOT represent that any particular individual or business is typical, or that any results or experiences achieved by any particular individual/business is necessarily typical.

Disclosure: Our company's websites' content (including this website's content) includes advertisements for our own company's websites, products, and services, and for other organization's websites, products, and services. In the case of links to other organization's websites, our company may receive a payment, (1) if you purchase products or services, or (2) if you sign-up for third party offers, after following links from this website. Unless specifically otherwise stated, information about other organization's products and services, is based on information provided by that organization, the product/service vendor, and/or publicly available information - and should not be taken to mean that we have used the product/service in question. Additionally, our company's websites contain some adverts which we are paid to display, but whose content is not selected by us, such as Google AdSense ads. For more detailed information, please see Advertising/Endorsements Disclosures

Our sites use cookies, some of which may already be set on your computer. Use of our site constitutes consent for this. For details, please see Privacy.

Click privacy for information about our company's privacy, data collection and data retention policies, and your rights.

Contact Us    About and Terms Of Use    Privacy    Advertising/Endorsements Disclosures