Ok.. I have not tried to use the Sound(0) component of PTviewer. Mainly because of the quality of java enabled .au file format.
However, you might make a note of this. There are two flavors of PTviewer.jar.
The LITTLE version is usually around 24kb. It contains all of the classes for enabling the .jar to display panoramas.
The BIG version is usually around 51kb. It contains all of the functions of the basic Little version + the functions for 'compass and advanced classes'. One of those advanced features might be "sound".
Reading through my reference material this morning I found these items of interest however, I did not see any reference to Sound:
http://users2.ev1.net/~wufdog/PT/ptviewerscripting/_ptViewer_Start.htm
Looking through my paper references: there are params for sound0, sound1, sound2 which are sound files to be use by the applet.
"Sound and Other Media - posted Documentation version 2.4 October 18, 2001. [rather outdated information]
Sound files of type au, aiff, wave and midi are supported in PTviewer 1.2. The should be specified in a list using the sound0, sound1, sound2 etc. Specify the name of the sound file. The can then be played back using the ptviewer command 'PlaySound(n)'. with n being the number in the sound list. This comman can be linked to any normal and static hotspot, or linked to the popup function, or called from javascript. Please note that current browsers usually implement Java 1.1, which only supports '.au' files. Using '.gsm' files is possible with a small extention.
Many more media formats are available if JMF is installed on the host computer. These include avi-video, linear quicktime video, Flash 2, mpeg 1/2/3, many sound formats etc. From version 1.7.2 of PTviewer, JMF media are loaded via the optional PTMedia extensions"
The full document maybe found here.
http://webuser.fh-furtwangen.de/~dersch/
And do a EDIT Search for 'sound' on this page.
http://webuser.fh-furtwangen.de/~dersch/PTVJ/helpers.html
------------- /s/
Dave
Forum Moderator for
EasyPano - Panoweaver
Pano2VR
Visit 360texas.com
|