Integrate Soundcloud audiofile

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
zitronenwolf
Posts: 1
Joined: Tue Sep 17, 2019 5:13 pm

Fri Nov 12, 2021 11:44 am

Hi there,

I'm relatively new here (I worked with panotour pro): how could I make a hotspot where a window opens and a soundcloud file is played - just like a youtube-video.
And is it also possible to make such a window with a sound from a local file with play- and pause-button and a slider for the position?

Best, Zitronenwolf
User avatar
Hopki
Gnome
Posts: 11826
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Fri Nov 12, 2021 5:35 pm

Hi Zitronenwolf,
You can use a hotspot to play a sound file.
Someone asked not so long back the same question, please find the project attached.
Have a play and see if you can work it out.
Regards,
Attachments
project.zip
(180.74 KiB) Downloaded 36 times
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Idocio
Posts: 34
Joined: Wed Apr 15, 2020 9:26 pm

Mon Nov 15, 2021 12:17 pm

Hi Hopki,
interesting project. But I can't quite understand what the Video1 element is for. Could you explain a bit?
Thank you
User avatar
Hopki
Gnome
Posts: 11826
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Mon Nov 15, 2021 11:01 pm

The video element is used to play the mp3 file.
This means the seek bar is connected to the video element.
So whatever it played the seek bar will represent.

You can use a set value action to change which mp3 file it plays.
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Idocio
Posts: 34
Joined: Wed Apr 15, 2020 9:26 pm

Wed Nov 17, 2021 10:26 am

A doubt. In the sample project, you add the audio files directly, adding the file path in the description field of the hotspot and adding the files as assets.

What is the Add Sound .. element of the skin editor for?
What is the difference of adding a file through the skin editor?
When is it recommended to use this method?

I've searched the documentation, but haven't found much more information.

Thank You
User avatar
Hopki
Gnome
Posts: 11826
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Wed Nov 17, 2021 11:30 am

A sound can be added directly in the skin editor.
Either use the Elements => Add Sound... or drop an mp3 file into the skin editor.
This is intended for small files used for button clicks etc, and small in file size as you do not want to bloat the skin out.
Also, anything in the skin gets pre loaded.

In V6 the seek bar can only belong to one element or sound.
If you had several sounds added to the viewer then you would need a seek bar for each sound only becoming visible as that sound is played.

Using the video element to play an mp3 file means you can use one seek bar linked to the video element.
As the mp3 files have been added to assets, you can use a Set Value Action to set the path of the mp3 file to be played to the Video element with a button click.
The sounds are only loaded when they are called by the Video element.

Adding the sound using the Sound Viewer Mode (Sound Editor), any sound in a node gets loaded on node open.
If you have sound files in node 2, these will only get loaded when you go to node 2.
Note, if you open the project and select a button to play a sound that is in node2, it will not play as it is not loaded yet.

If node Change Keep is Selected then once the sound loads it can be played in any node thereon after. If this is deselected then the sound can only play in the node it is added to.
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Idocio
Posts: 34
Joined: Wed Apr 15, 2020 9:26 pm

Fri Nov 19, 2021 2:22 pm

Thank you.
another question. Is it possible to add as a background file a file located in an online service, such as soundclud, or located in another server?
I have tried putting a url instead of a file in Background sound, but it doesn't work.
I have also tried to enter a url in the skin editor through the Play Media action, but it has not worked for me either.
Idocio
Posts: 34
Joined: Wed Apr 15, 2020 9:26 pm

Wed Nov 24, 2021 12:44 pm

@hopki Can it be linked to an audio hosted on external services, as is done with YouTube videos?
User avatar
Hopki
Gnome
Posts: 11826
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Thu Nov 25, 2021 1:12 pm

If you use the video element and select video source URL you can enter a absolute URL resolving to a mp3 file.
Here is a test link: https://support.ggno.me/TakeMyHand.mp3
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Post Reply