Page 1 of 1

Integrate Soundcloud audiofile

Posted: Fri Nov 12, 2021 11:44 am
by zitronenwolf
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

Re: Integrate Soundcloud audiofile

Posted: Fri Nov 12, 2021 5:35 pm
by Hopki
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,

Re: Integrate Soundcloud audiofile

Posted: Mon Nov 15, 2021 12:17 pm
by Idocio
Hi Hopki,
interesting project. But I can't quite understand what the Video1 element is for. Could you explain a bit?
Thank you

Re: Integrate Soundcloud audiofile

Posted: Mon Nov 15, 2021 11:01 pm
by Hopki
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,

Re: Integrate Soundcloud audiofile

Posted: Wed Nov 17, 2021 10:26 am
by Idocio
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

Re: Integrate Soundcloud audiofile

Posted: Wed Nov 17, 2021 11:30 am
by Hopki
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,

Re: Integrate Soundcloud audiofile

Posted: Fri Nov 19, 2021 2:22 pm
by Idocio
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.

Re: Integrate Soundcloud audiofile

Posted: Wed Nov 24, 2021 12:44 pm
by Idocio
@hopki Can it be linked to an audio hosted on external services, as is done with YouTube videos?

Re: Integrate Soundcloud audiofile

Posted: Thu Nov 25, 2021 1:12 pm
by Hopki
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,