Javascript: Stop playing Soundspots  

Share your tips and tricks here or get help with any Panotour 2.0+ problem!
No bug reports (of any kind) in this forum!
no avatar
kruben
New member
 
Topic author
Posts: 7
Likes: 1 post
Liked in: 2 posts
Joined: Fri Nov 10, 2017 11:48 pm
Info

Javascript: Stop playing Soundspots

by kruben » Thu Dec 14, 2017 1:04 am

Hey,

I am developing a plugin for 3D Sound without flash. The plugin will use the data from the soundspots and create a virtual 3D room with the "resonance audio web SDK". This means I have a duplicate of all sounds (Panotour loads the sounds and my Plugin loads the sounds). My current solution is to mute all sounds as a start-parameter. That works fine, but now I also want to include a video in my tour. This, of course, should be played by panotour, but it is not playing an audio because I muted it and including the audio from the video in my plugin is currently not planned because I would have to take care of desyncs.

So my question: How can I stop all (and only) Soundspots (or specific ones to loop through)? There has to be an option. I am pretty sure, because the sound pauses when you change the browser-Tab.

Would be really nice if some developer can give me a little insight of how it works and/or give me a method name to call.

Greetings: kruben

virtualdiorama likes this post.

User avatar
Annis
Kolor Team
 
Posts: 6062
Likes: 801 posts
Liked in: 444 posts
Joined: Mon Aug 12, 2013 12:47 pm
Location: France
Info

Re: Javascript: Stop playing Soundspots

by Annis » Thu Dec 14, 2017 12:32 pm

Have a look at Alex Popov's custom action "Show/hide hotspots".
http://www.kolor.com/wiki-en/action/vie ... c_hotspots

You can hide hotspots by type of hotspot or by keyword, so you might be able to use that a base to disable sound hotspots maybe?

I'd be interested in seeing the final plugin. :)

no avatar
virtualdiorama
Member
 
Posts: 41
Likes: 3 posts
Liked in: 2 posts
Joined: Mon Jan 30, 2017 2:09 pm
Info

Re: Javascript: Stop playing Soundspots

by virtualdiorama » Mon Jan 22, 2018 11:56 am

Hey Kruben, interesting project you have there. Any updates on the 3 d sound that you would like to share with us?
Johannes Söderström
johannes.soderstrom@virtualdiorama.com
virtualdiorama.com

no avatar
kruben
New member
 
Topic author
Posts: 7
Likes: 1 post
Liked in: 2 posts
Joined: Fri Nov 10, 2017 11:48 pm
Info

Re: Javascript: Stop playing Soundspots

by kruben » Mon Jan 22, 2018 8:00 pm

Looks good so far. Still, some things to do. Currently, the tour has to start without audio volume and this will probably not change. The 3D Audio loads correctly in every panorama and I can toggle between stop and play with the standard control menu (at least with the classic version) I still need to test it on mobile and Safari and make the mp3-file links relative to the current url. Then I also need to control the video sound with the same volume toggle as for the 3D audio. Maybe I open a github repo in the coming days.


Who is online

Users browsing this forum: No registered users and 4 guests