• Hello,
    First of all, sorry for my bad english. I'm french and I'm a real beginner in computer language
    I would like to know if you could help me for a problem. I have a music for my first pano and another that begins with the second pano and for several panos. If
    I switch from first to second pano everything works fine but if I spend
    the first pano and after the third by clicking on the third thumbnail, the
    music does not begin. It is the second pano that starts the music !!!
    so I would like my music starts whatever the pano I choose by clicking on the thumbnail
    Here are the codes that I have installed.
    For sound

    Code
    <plugin name="soundinterface"
    url="plugins/soundinterface.swf"
    alturl="plugins/soundinterface.js"
    preload="true"
    rootpath=""
    volume="1.0"
    mute="false"
    />


    for the music starts with the first piano

    Code
    <events name="currentpano"
               onnewpano="playsound(bgsnd, 'sounds/horreur.mp3|sounds/horreur.ogg', 360, 0, 360, 0.8, loops);"
               onremovepano="stopsound(bgsnd);"
               />


    and finally to the other music starts with the second pano

    Code
    <events name="currentpano"
               onnewpano="playsound(bgsnd, 'sounds/gamma.mp3|sounds/gamma.ogg', 360, 0, 360, 0.8, loops);"
               onremovepano="false"
               />


    Many thanks
    JP
    http://www.jeanpierrerieu.fr

  • First of all, thank you for your reply.
    The answer is no, if I put this event in each xml, the music restarts at the beginning with each new pano. In my virtual tour, music starts on the first pano and a new music starts on the second pano to the eighth pano but if I move to the first pano to the third (by clicking on thumbnails) music does not start because it is the second pano which starts music.
    Thank you for your help
    best regards

  • Hi

    If you want the sound to play all the time you have to give loop = true

    onnewpano="playsound(bgsnd, 'sounds/horreur.mp3|sounds/horreur.ogg', 360, 0, 360, 0.8, true);"

    Post what you really want to achieve.
    One sound, a few, in all panoramas or not? Keep in mind that on mobile devices soundinterface plugin can only play one sound at a time.


    Piotr

  • Hi
    thank you for taking time to help me ...
    My problem is about changing musique. I have two different music. A first music on a single pano, the first. And then, a different music on all other panos (so from the second).
    It is the second pano which starts the second music. If I look at the panos in order everything is ok BUT if I want to go first to fifth pano (for example), I have no music on the fifth pano because I need to go through the second pano (because it is started the next music) .
    I would have, I think, a code that says, if you skip the second pano, then the music will start on the selected pano (third example)
    thank you in advance
    Best regards
    JP

  • Hi,

    i can help.

    - add in every scene where you want audio:
    audio="song title.mp3"
    like:

    Code
    <scene name="scene_1" title="a1" audio="ilovekrpano.mp3" onstart=""  >

    in the scenes where you don't want audio just leave the audio="" away.

    - then make a folder called 'audioplayer' on the same level as the tour.xml ( or where your scenes are).
    - in the audio player folder you make a folder called "audio". There you put all your audio files.
    - Also in the 'audioplayer' folder you put this audioplayer.xml (download)

    - in the tour.xml you include the audio player.xml like:

    Code
    <include url="audioplayer/audioplayer.xml" />


    Make sure the path of the sound interface plugin is right in the audioplayer.xml

    live example:
    http://www.virtualtuur.com/krpano/audio/scene/
    http://www.virtualtuur.com/krpano/audio/scene/tour.xml

    edit: after re-reading your post.. i think you want it a bit else.. but that should not be a too big problem.
    When i have time i make another example, or minor fix for this.

    edit2: new example: http://www.virtualtuur.com/krpano/audio/scene2/tour.html
    xml:
    tour.xml: http://www.virtualtuur.com/krpano/audio/scene2/tour.xml
    audioplayer.xml: http://www.virtualtuur.com/krpano/audio/s…audioplayer.xml
    here i used absolute scene names !!!


    Hope it helps
    Tuur *thumbsup*

  • Hi ...
    Thank you so much for looking at my problem.
    What I want is exactly your new example: http://www.virtualtuur.com/krpano/audio/scene2/tour.html (the music goes from pano two to three without stopping).
    What misery ... I can't do that for my virtual visit. This one comprises 26 panos so I made a virtual visit with three panos to better understand.
    This is my tour.xml


    In your third scene you did not write audio = "song title.mp3"? I tried with or without and the result is the same ?
    I then created a folder and in it I put a folder with my music and a file audioplayer.xml
    With this one I have no music!!!


    And with this one, I have music but
    It starts again with each new pano

    I must be really bad to fail to reproduce your codes *confused* .
    Thanks in advance for telling me where the problem comes from.
    Best regards
    JP

  • I,
    Although I make all the possible modifications, I do not arrive at the good result.


    The music changes from pano 1 to pano 2 ... It continues from pano 2 to pano 3 but
    if I go back to pano two it starts again at the beginning
    I can not get this... http://www.virtualtuur.com/krpano/audio/scene2/tour.html
    Best regards
    JP

Jetzt mitmachen!

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