Sie sind nicht angemeldet.

jpdeglet69

Fortgeschrittener

Beiträge: 215

Wohnort: France

Beruf: VR Maker and Document Management Expert

  • Nachricht senden

101

Montag, 3. Oktober 2016, 12:34

hello Piotr and all,
first tx a lot for your plugin
then i have 2 questions:

i saved a "sounds.xml" file like this one:
<krpano>
<sound2d>
<scene name="scene_1" audiofile="sound1" vol="0.9" rate="1.0"/> <scene name="scene_2" audiofile="sound2" vol="0.9" rate="1.0"/>
</sound2d>
</krpano>

Is it possible to modify dynamically the different values ? for example something more and less like this : set(sound2d[scene_1].audiofile,sound2);
i tried different codes with no result...


Hi,
Have you tried
To trace
trace(get(sound2d.scene[scene_1].audiofile));
To set
set(sound2d.scene[scene_1].audiofile, "sound2");
Best regards,
JPhD
VR-Guide®/Eleana CEO
https://eleana.online

102

Montag, 3. Oktober 2016, 13:33

yes jp thank you this is the good sentence!

but i have another pb, do someone know why this command doesn't stop the sound:
Html5Soundstop(scene_1);


i tried
Html5Soundstop(scene_1);

Html5Soundstop('scene_1');

Html5Soundstop("scene_1");

Html5Soundstop(get(sound2d.scene[scene_1].name););

...
with no result..

  • »spacerywirtualne« ist der Autor dieses Themas

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

103

Montag, 3. Oktober 2016, 16:05

Hi

The name sound 2d = sound2d.scene[scenename].audiofile

Use:

Quellcode

1
Html5Soundstop(get(sound2d.scene[scenename].audiofile)); 



This only applies to sounds implemented by the editor.

Piotr
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

104

Montag, 3. Oktober 2016, 17:02

thank you!

105

Dienstag, 4. Oktober 2016, 15:00

sorry it's me again... another pb...


i stop sound and modify the futur sound of the scene, this code is ok for that:

Html5Soundstop(get(sound2d.scene[scene1].audiofile));
set(sound2d.scene[scene1].audiofile,sound2);

Then if i want to play sound again (after a moment for example), i tried this:

Html5Soundplay(get(sound2d.scene[scene1].audiofile));


but it doesn't play sound??



i tried also:
Html5Soundplay(get(sound2d.scene[scene1].name));

Html5Soundplay(sound2d.scene[scene1].audiofile);

Html5Soundplay(sound2d.scene[scene1].name);

Html5Soundplay(sound2d.scene[scene1]);

Html5Soundplay(scene[scene1].audiofile);

Html5Soundplay(scene[scene1].name);

Html5Soundplay(scene[scene1]);

Html5Soundplay(scene1);

...
with no result...
Help...please.. ;-)


  • »spacerywirtualne« ist der Autor dieses Themas

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

106

Dienstag, 4. Oktober 2016, 16:13

Hi
Html5Soundstop(get(sound2d.scene[scene1].audiofile));
set(sound2d.scene[scene1].audiofile,sound2);

Then if i want to play sound again (after a moment for example), i tried this:

Html5Soundplay(get(sound2d.scene[scene1].audiofile));


sorry but this not work that way...

If you remove the sound from the stage and you have to add it back - use this function - playHtml5sound2D()

Editor was designed to eliminate manually change the xml code. If you want to dynamically manipulate the sounds, you can use a pure HTML5-VR Audio Plugin and his functions from documentation *thumbup*


Piotr
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

  • »spacerywirtualne« ist der Autor dieses Themas

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

107

Samstag, 15. Oktober 2016, 16:58

Hi everyone

There is a new version of the HTML5-VR Audio Plugin (2.1 beta1) *thumbsup*

Improved, enhanced functions:

Html5Soundpause(name,variable*);

Html5Soundstop(name); (Stops sound but does not destroyed it. If you are using Html5Soundplay(name); - the sound will be play without reloading)
Html5Soundmute(name,variable);

and other things...

New method:

Html5SoundUnload(name);
Unload and destroy a sound object from the project.

Documentation update is in progress.

Let me know, if you not receive the update link.

We are constantly working on improving our products.

Piotr

p.s. Take a look at our new product.
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

108

Freitag, 4. November 2016, 22:22

With this latest release were you able to expand the falloff amount for the POI sounds?

  • »spacerywirtualne« ist der Autor dieses Themas

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

109

Samstag, 5. November 2016, 10:41

With this latest release were you able to expand the falloff amount for the POI sounds?
*confused* can you explain *question*


Piotr
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

110

Samstag, 5. November 2016, 15:14

Hi Piotr, I asked the same thing back in this post but I think you got busy working on your latest update, lol.

Post

The demo in that post clearly has a far wider falloff range than the beta 10 release.

111

Montag, 7. November 2016, 16:16

Piotr? Are you there? The falloff in the link I PM'd you is very drastic...

  • »spacerywirtualne« ist der Autor dieses Themas

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

112

Montag, 7. November 2016, 18:48

Piotr? Are you there? The falloff in the link I PM'd you is very drastic...
He worked on updating the plugin. There was an error in the GUI editor. Now I can take care of your case.


Piotr
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

  • »spacerywirtualne« ist der Autor dieses Themas

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

113

Montag, 7. November 2016, 19:00

HTML5-VR Audio Plugin - version 2.1 beta 2 is ready!

Hi

I sent the link to download the latest version of the plugin to my all clients *thumbup*

Thank you for all the comments and suggestions


Piotr
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

114

Freitag, 11. November 2016, 14:42

pausing and resuming sounds with onfocus event

Hi All

Just wondered if anyone had tried or knew of a way to pause the HTML 5 sound objects and then resume them on a window.focus change.

Be great if this could be baked into the HTML5-Vr Plugin source code but failing that I'm working on a couple of projects that could really do with this functionality.

The built in Krpano Sound plugin does this ie when you are viewing a different tab the sounds pause but that's not the case for HTML5-VR audio at the moment.

I would imagine this would be a javascript add to look for the window.focus change but just wondered if anyone had messed around with it yet and had any advice.

:)

115

Freitag, 11. November 2016, 15:18

I've fixed it I simply added some javascript to the main HTML file.

It would be a great feature to add into the plugin though if possible :)

  • »spacerywirtualne« ist der Autor dieses Themas

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

116

Samstag, 12. November 2016, 10:54

Hi streetvisit

Thank you for your comment.
The idea is good. I am currently working on the development of the Virtual Tour Builder . You can show here how you did it so that other users can benefit, or send me a script in priv and I try to implement it faster.


Piotr
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

117

Montag, 14. November 2016, 00:13

Problem with iOS 9.3

Hello spacerywirtualne.

I am Working in an old Project. This is the original:

http://catedral.regmurcia.com/visita/index.html


But now I am upgrading it to VR but I am having a problem with the sound in VR mode with my Iphone. It has 9.3 iOS and the problem is when I enter in VR mode and try to play the Locution wich is on the floor just near my feets it does not start playing until I touch the Iphone screen.

Do you know how can I solve this?

As the job is not presented yet I will send you the new link in a private message. I send this in the public forum because I would like that other people find the solution to this problem.

Thank you and best regards.

  • »spacerywirtualne« ist der Autor dieses Themas

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

118

Montag, 14. November 2016, 09:46

Hi
But now I am upgrading it to VR but I am having a problem with the sound in VR mode with my Iphone. It has 9.3 iOS and the problem is when I enter in VR mode and try to play the Locution wich is on the floor just near my feets it does not start playing until I touch the Iphone screen.
This is IOS limitations (for security reasons).

There are additional system limitations on iOS devices (iPhone and iPad): link
  • No Autoplay / Autostart!
    A sound can't start to play automatically! An user interaction is needed to start playing the sound, e.g. a touch on the screen by the user. The krpano soundinterface plugin automatically detects that situations and when the playing is not possible it automatically queues the playsound() command and waits for the next user interaction to start the sound automatically (e.g. when the user touches the screen to pan the pano or to click a button).
  • Only one sound at one time!
    Only one sound file can be played at one time! When there is the new playsound() call the last sound will be automatically stopped.
  • No volume change!
    Changing the volume of a sound is not allowed on iOS devices.

The first option is something that only Apple can change.

Piotr
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

119

Montag, 14. November 2016, 14:24

Hello

I have solved It inserting a click sound in the first plugin in onclick attribute. After that click sounds It works propperly.

Thanks.

120

Montag, 5. Dezember 2016, 10:33

error beta3

hello,
since version 2.1beta3 i have this error :
ERROR: html5soundunload - TypeError: Cannot read property 'unload' of undefined

Best regards
clio