Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Displaying a "sound object" on a web site



Hi, all -

I've been a lurker on this list for several years -- this is my first post.

I am building an output option into one of my applications which generates a set of web pages from data contained in a document. (I.e., the program creates output which is a folder containing HTML files and a subfolder containing graphics, movies, sound files, etc.) I need some advise about what to generate when presenting a sound...

In practice, I have an AIF file containing the sound. Currently, I am generating code such as the following into the output HTML file:

<div style="position:absolute; top: 68px; left: 341px; width: 40px; height: 40px;">
<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
codebase="http://www.apple.com/qtactivex/qtplugin.cab"; width="40" height="40">
<param name="autostart" value="false"> <param name="autoplay" value="false">
<param name="src" value="images/Dog__arrooo.aif"> <param name="controller" value="true">
<embed width="40" height="40" src="images/Dog__arrooo.aif" type="audio/x-aiff"
pluginspage="http://www.apple.com/quicktime/download/";
controller="true" autoplay="false" autostart="false" controls="console">
</object>
</div>


This code (obviously) results in a 40px wide QT controller which plays the sound.

Now, what I'd like to do is embellish the output as follows:
(1) add a still pix associated with the controller to provide a better visual appearance (that's why the height is specified as 40 instead of 16).
(2) add the ability to click on the pix and have the sound play, just as if the user had clicked on the start item on the controller.


Can anyone either provide some sample code I might use or a reference to a location where I could learn how to do this myself?

Cheers,

Rick Aurbach, Ph.D.
President and Chief Engineer
Aurbach & Associates, Inc.
8233 Tulane Avenue, Suite B
St. Louis, MO 63132

www: 	http://www.aurbach.com/
eMail:	email@hidden [business]
		email@hidden [personal]
Fax: 		314/678-0869
Phone:	800/774-7239
		314/726-1321

"If it ain't broke and you haven't fixed it recently, it probably needs to be rewritten." - Richard Aurbach
"Beware of bugs in the above code; I have only proved it correct, not tried it." - Donald Knuth, computer scientist (1938- )
"Given enough eyeballs, all bugs are shallow" -Eric S. Raymond, programmer and writer (1957- )
"I was born not knowing and have had only a little time to change that here and there. "-- Richard Feynman (1918 - 1988)
"If in the last few years you haven't discarded a major opinion or acquired a new one, check your pulse. You may be dead." - Gelett Burgess (1866-1951)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-users/email@hidden


This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.