Play sound when zooming into specified region in pano?

  • Hi everyone,

    I have an idea I'm not sure is possible with krpano.

    What I'd like to do is have a sound play whenever someone looks at a certain area of a pano, and then zooms in on it. For example, a bird call plays when you look at a bird and zoom in. Is there a way to use a listener in krpano to accomplish this, maybe by setting a check for h and v lookat regions and then playing a sound if the fov goes above a certain amount? Or would constantly doing an onviewchange check be too laggy performance-wise?

    Thanks in advance for any insight you might have!

  • Hi,

    Or would constantly doing an onviewchange check be too laggy performance-wise?

    Just try it - as long as there are not too much action calls (few hundreds), it should be possible...

    There are already the playsound3Dxx actions to play a sound a specifc location with a given range:
    https://krpano.com/plugins/soundinterface/#playsound3D

    so it would be only necessary to adjust also the volume when zooming - which would be possible by using the sound objects:
    https://krpano.com/plugins/soundinterface/#soundobject

    But note - this is all Flash-only.

    Best regards,
    Klaus

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!