You are not logged in.

jl-krp

Intermediate

  • "jl-krp" started this thread

Posts: 154

Location: Bath

Occupation: Panographer - hobby and commercial

  • Send private message

1

Saturday, November 2nd 2013, 10:41pm

auto or prefer

Here are two lines of code generated by the 'make pano' and 'make pano multires' droplets:

embedpano({swf:"00.swf", xml:"00.xml", target:"pano", html5:"prefer", passQueryParameters:true});
embedpano({swf:"00.swf", xml:"00.xml", target:"pano", html5:"auto", passQueryParameters:true});

They differ by only one word but 'prefer' causes problems that cost me an afternoon of testing - Firefox 'prefers' not to read audio files like this:

onstart="stopallsounds();playsound(auto,sounds/hatt.mp3,1|hatt.ogg,1);">

I've tried

onstart="stopallsounds();playsound(prefer,sounds/hatt.mp3,1|hatt.ogg,1);">

to match 'prefer' in the html5 embed script

but ffox still can't find the file, and if I substitute 'auto' it can read them once more...Why 'prefer' at all?

Any info appreciated

JL

2

Sunday, November 3rd 2013, 3:44pm

The "auto" in embedpano has nothing to do with the "auto" in playsound.

"auto" in embedpano means that krpano will make what it deems is the best choice between flash and html5 for your browser (and available plugin), whereas "prefer" always picks html5 if krpano thinks your browser can handle it (even if it thinks flash would be a better option). If you use "auto", krpano will pick flash for firefox, which can play back mp3.

The "auto" in playsound means that krpano will automatically pick a name/id for the sound. Any other value will be taken as a litteral name. Two sounds can not play at the same time with the same name/id.

jl-krp

Intermediate

  • "jl-krp" started this thread

Posts: 154

Location: Bath

Occupation: Panographer - hobby and commercial

  • Send private message

3

Sunday, November 3rd 2013, 6:45pm

auto nauto

Thanks aldo
But the one does appear to block the other in firefox. Perhaps you would like to try?
Or offer another explanation as to why a sound 'cannot be found' when the embed is set to 'prefer'.

Puzzled of Bath

JL

Alexey Tkachenko

Professional

Posts: 770

Location: Russian Federation

Occupation: Interpreting, Building virtual tours

  • Send private message

4

Sunday, November 3rd 2013, 6:58pm

Does it show an error like "can't load the file 'hatt.ogg' " ?

What if try specifying a full path to the both sides of the 'pipe' character? Like this:

Source code

1
playsound(auto,sounds/hatt.mp3|sounds/hatt.ogg,1);">
Regards,

Alexey

jl-krp

Intermediate

  • "jl-krp" started this thread

Posts: 154

Location: Bath

Occupation: Panographer - hobby and commercial

  • Send private message

5

Monday, November 4th 2013, 8:29am

file path

Hi alex
yes I've tried that, and tried putting the .ogg file first - but still ffox cannot find it...

At least I now know how to avoid the problem even if I don't understand the cause!

JL

6

Monday, November 4th 2013, 8:33am

Hi,

I would also say that the missing 'full'-path for the '.ogg' file is the problem.

Either this - or - the krpano soundinterface plugin is too old - or - your server doesn't deliver the '.ogg' file (this can happen when the file-permissions are wrong - or on some severs when they don't know the mime-type of the file-extension).

Best regards,
Klaus

Similar threads