SoundInterface, continuous. with loop. step-by-step

  • Hello,

    I do not have much experience with implementing plugins in Krpano in general. I'm hoping to get a very straightforward, step-by-step explanation on how to implement the SoundInterface plugin. I have just one audio file, soundtrack.mp3, in a folder I created called Audio. I wish for the sound file to play continuously when loading different panos and then loop.

    Here is my code thus far:


    Thank you in advance for any help.

  • Set the soundinterface plugin with keep="true" attribute and launch the sound after a user gesture (prefered) with a playsound action with 0 value for loops (cf. https://krpano.com/plugins/soundinterface/#playsound)
    Sound should be played accross scenes

    Thank you. I was able to figure it out based on your answer and looking over some other threads. Also, I did not realize the sound would not play from the Editor. It had to be loaded on the server to preview it.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!