Go Shopping Cart Site Map User Panel and Admin English Home

Home > Easypano Forum    Easypano Forum has been upgraded.

Easypano Forum


Welcome Guest Register Login Search The Forum Display List of Forum Members
 All Forums
  PTViewer Scripter
       Forum Search Results
 
Subject Topic: Can't get sound to play? Post Reply Post New Topic
Message posted by steiner on May-04-2006 at 6:21am
View steiner's Profile Profile   Search for other posts by steiner Search   Visit steiner's Homepage www   Quote steiner Quote   Send Private Message Send Msg  
steiner
Avatar
Gold Member
Gold Member

May-21-2004
212 Posts

Hello all

I'm experimenting with trying to get an '.au' sound file to play in the following pano:

http://www.condottiero.com/test/sample.html

but nothing seems to happen when clicking on the audio button.  Here's the code in case I've done something inccorrectly:

<html>
<head><META NAME="GENERATOR" Content="PTViewer Scripter"></head>
<body>

<APPLET archive = "ptviewer.jar" code = "ptviewer.class" width = 320 height = 265>
<PARAM name = wait value = "res/loading2.jpg">
<PARAM name = bar_x value = 25>
<PARAM name = bar_y value = 131>
<PARAM name = bar_width value = 266>
<PARAM name = bar_height value = 6>
<PARAM name = barcolor value = e2e2d8>
<PARAM name = quality value = 0>
<PARAM name = maxspeed value = 7>
<PARAM name = frame value = "res/bar_champneys.gif">
<PARAM name = bgcolor value = cccccc>
<PARAM name = sound0 value = res/sound.au>
<PARAM name = shotspot0 value = " x254 y241 a277 b264 u'ptviewer:startAutoPan(0,0,1.004)' ">
<PARAM name = shotspot1 value = " x226 y240 a249 b264 u'ptviewer:startAutoPan(0,0,0.996)' ">
<PARAM name = shotspot2 value = " x187 y253 a222 b264 u'ptviewer:startAutoPan(0,-1.0,1.0)' ">
<PARAM name = shotspot3 value = " x187 y240 a222 b252 u'ptviewer:startAutoPan(0,1.0,1.0)' ">
<PARAM name = shotspot4 value = " x160 y240 a182 b264 u'ptviewer:startAutoPan(1.0,0,1.0)' ">
<PARAM name = shotspot5 value = " x131 y240 a155 b265 u'ptviewer:startAutoPan(-1.0,0,1.0)' ">
<PARAM name = shotspot6 value = " x280 y240 a319 b264 u'ptviewer:PlaySound(0)'">
<PARAM name = file value = "ptviewer:0">

<PARAM name = pano0 value =
 "{file=panorama/pano1.jpg}
 {auto=0.3}
 {panmin=-180}
 {panmax=180}
 {pan=-60}
 {tiltmin=-90}
 {tiltmax=90}
 {tilt=-2}
 {fovmin=16}
 {fovmax=117}
 {fov=87}">

</Applet>
</body>
</html>

Any ideas?

Thanks

Steiner


Message posted by 360texas on May-04-2006 at 10:09am
View 360texas's Profile Profile   Search for other posts by 360texas Search   Visit 360texas's Homepage www   Quote 360texas Quote   Send Private Message Send Msg  
360texas
Avatar
Forum Moderator
Forum Moderator
United States
June-12-2002
2240 Posts

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

Message posted by steiner on May-04-2006 at 4:47pm
View steiner's Profile Profile   Search for other posts by steiner Search   Visit steiner's Homepage www   Quote steiner Quote   Send Private Message Send Msg  
steiner
Avatar
Gold Member
Gold Member

May-21-2004
212 Posts

Hi Dave

Many thanks for the in-depth reply mate. First question (and probably a banal one at that):

1. Where do you source the 'Big' version of the latest PTviewer.jar?  Do you have a link for this - I've been searching but not found it as yet.

2. According to your documentation snippet - it seems as if my code above follows the parameters they suggest?

Thanks

Anthony


Message posted by smooth on May-05-2006 at 2:15am
View smooth's Profile Profile   Search for other posts by smooth Search   Visit smooth's Homepage www   Quote smooth Quote   Send Private Message Send Msg  
smooth
Forum Moderator
Forum Moderator
Australia
November-23-2002
5401 Posts

PTViewer files http://www.fsoft.it/panorama/ptviewer.htm

PTViewer Help http://users2.ev1.net/~wufdog/PT/index.htm

Regards, Smooth


Message posted by steiner on May-05-2006 at 7:26am
View steiner's Profile Profile   Search for other posts by steiner Search   Visit steiner's Homepage www   Quote steiner Quote   Send Private Message Send Msg  
steiner
Avatar
Gold Member
Gold Member

May-21-2004
212 Posts

Thanks Smooth,

OK, I'm using the new applet - I've added Dave's IE code - result = still no sound.

EasyPano tech support, please let me know what (if anything) I'm doing wrong.  I have a client who would like to have music in their panos and I'm at present unable to give them what they're looking for.

In case - the code now looks like this:

http://www.condottiero.com/test/sample.html

<html>
<head><META NAME="GENERATOR" Content="PTViewer Scripter"></head>
<body>

<!--[if gte IE 6]><SCRIPT language="javascript" src="http://www.condottiero.com/embedjava.js"><![endif]--></SCRIPT>
<APPLET archive = "ptviewer.jar" code = "ptviewer.class" width = 320 height = 265>
<PARAM name = wait value = "res/loading2.jpg">
<PARAM name = bar_x value = 25>
<PARAM name = bar_y value = 131>
<PARAM name = bar_width value = 266>
<PARAM name = bar_height value = 6>
<PARAM name = barcolor value = e2e2d8>
<PARAM name = quality value = 0>
<PARAM name = maxspeed value = 7>
<PARAM name = frame value = "res/bar_champneys.gif">
<PARAM name = bgcolor value = cccccc>
<PARAM name = sound0 value = res/sound.au>
<PARAM name = shotspot0 value = " x254 y241 a277 b264 u'ptviewer:startAutoPan(0,0,1.004)' ">
<PARAM name = shotspot1 value = " x226 y240 a249 b264 u'ptviewer:startAutoPan(0,0,0.996)' ">
<PARAM name = shotspot2 value = " x187 y253 a222 b264 u'ptviewer:startAutoPan(0,-1.0,1.0)' ">
<PARAM name = shotspot3 value = " x187 y240 a222 b252 u'ptviewer:startAutoPan(0,1.0,1.0)' ">
<PARAM name = shotspot4 value = " x160 y240 a182 b264 u'ptviewer:startAutoPan(1.0,0,1.0)' ">
<PARAM name = shotspot5 value = " x131 y240 a155 b265 u'ptviewer:startAutoPan(-1.0,0,1.0)' ">
<PARAM name = shotspot6 value = " x280 y240 a319 b264 u'ptviewer:PlaySound(0)'">
<PARAM name = file value = "ptviewer:0">

<PARAM name = pano0 value =
 "{file=panorama/pano1.jpg}
 {auto=0.3}
 {panmin=-180}
 {panmax=180}
 {pan=-60}
 {tiltmin=-90}
 {tiltmax=90}
 {tilt=-2}
 {fovmin=16}
 {fovmax=117}
 {fov=87}">

</Applet>

<!--[if gte IE 6]></NOSCRIPT><![endif]-->

</body>
</html>


Message posted by smooth on May-05-2006 at 3:28pm
View smooth's Profile Profile   Search for other posts by smooth Search   Visit smooth's Homepage www   Quote smooth Quote   Send Private Message Send Msg  
smooth
Forum Moderator
Forum Moderator
Australia
November-23-2002
5401 Posts

Anthony,

Mate, I didn't have the time or the enthusiasm before this but I just took a look at your files.

Upshot? Your code is 100% correct. Your .au file encoding is a DUD!

I re-encoded your sound.au file and it now works (sounds crap) but at least it works. Download the files.

You must make .au files 8bit>Mono>11025 Hz. Use Audacity it's FREE.

Now if it was me I would be using a Flash Juke Box or at the very least a Flash audio file. Many of these are listed on my recommendations site www.smooth360.info by using these you let the viewer choose the audio music or speech file they choose in full .mp3 stereo sound. Have a look at Web Juke Box listed under "Products & Downloads"

Do you have a special reason it needs to be operated from the panorama?

Hope this helps.

Regards, Smooth


Message posted by steiner on May-06-2006 at 5:37am
View steiner's Profile Profile   Search for other posts by steiner Search   Visit steiner's Homepage www   Quote steiner Quote   Send Private Message Send Msg  
steiner
Avatar
Gold Member
Gold Member

May-21-2004
212 Posts

Hi Smooth - thanks for getting back mate.  You're not obligated to answer any request buddy so I'm glad you found the enthusiasm.  :)

The sound file (fom the client and only to be used in the experiment) is a mystery as it worked on my sound software - but I'm damn glad you sorted out the mystery.  The client's design person is pushing for the embeded audio but I'm sure I can talk them out of it if there's a better option.

I'll take a look at your Flash links and let you know how I get on.  As always - your help is greatly appreciated!

Cheers

Anthony

P.S. Do any of EasyPano's tech people ever answer questions on this forum?


Message posted by steiner on May-06-2006 at 6:08am
View steiner's Profile Profile   Search for other posts by steiner Search   Visit steiner's Homepage www   Quote steiner Quote   Send Private Message Send Msg  
steiner
Avatar
Gold Member
Gold Member

May-21-2004
212 Posts
Quote: Originally posted by smooth on May-05-2006

Do you have a special reason it needs to be operated from the panorama?


Sorry, forgot to answer this.  I'd agreed with the client that it would be a good thing to be able to turn the sound 'off' if they didn't want to hear it.  However, now I have these working - it opens up another question.

The applet doesn't autostart the music.  Are there any parameters I can add to the code to allow this to happen?  Or indeed to make the sound file loop?

 


Message posted by smooth on May-06-2006 at 11:49am
View smooth's Profile Profile   Search for other posts by smooth Search   Visit smooth's Homepage www   Quote smooth Quote   Send Private Message Send Msg  
smooth
Forum Moderator
Forum Moderator
Australia
November-23-2002
5401 Posts

Looks like you would need the GSM option to stream sound.

http://www.path.unimelb.edu.au/~dersch/PTVJ/helpers.html

Doesn't interest me enough to learn it.

Like I said just use Flash. Place the controls directly under the panorama controls.

Quote: Originally posted by steiner on May-06-2006

P.S. Do any of EasyPano's tech people ever answer questions on this forum?


I guess they do when they have time. Real support is via the Easypano User Panel at the very top of this page. This is where you lodge a trouble ticket. 

Regards, Smooth


Message posted by smooth on May-06-2006 at 12:05pm
View smooth's Profile Profile   Search for other posts by smooth Search   Visit smooth's Homepage www   Quote smooth Quote   Send Private Message Send Msg  
smooth
Forum Moderator
Forum Moderator
Australia
November-23-2002
5401 Posts

Worth reading:

http://www.easypano.com/download/pts_manual.pdf

Chapter 3.6

Read about "Background Sound" and "Hot Spot Sound"

Regards, Smooth


If you wish to post a reply to this thread you must first Login
If you are not already registered you must first register

Forum Jump Page of 2 Post Reply Post New Topic
Printer Friendly Version Printable version

Powered by: - Web Wiz Guide Discussion Forums