Jump to content

Babylon.js + SoundCloud = Awesomeness?


OMAR
 Share

Recommended Posts

Hi everybody!

I wanted to ask whether there was a way to integrate SoundCloud to Babylon.js?

I'm making game in which I want to give players the ability to choose their favorite music from SoundCloud so that it will play in the background.

I tried the code below but it didn't work and also crashed my browser :(

var music = new BABYLON.Sound("Music", "https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/231224149&auto_play=true", scene, null, { streaming: true, autoplay: true });

Any ideas? :)

Link to comment
Share on other sites

Your best option would be to use their API as they are not very fund of people doing such things,

i believe it was possible at one point, but they changed their systems.

 

Edit:

One other way could possible be to make a small expandable html pop-over on your scene with the embeded song, instead of the babylon audio manager.

Link to comment
Share on other sites

  • 2 weeks later...
2 minutes ago, meteoritool said:

How have you done to get the link to your soundcloud song

Go to your soundcloud account, click on the "3 dots button" on the upright of the page, click developers, register your app, get your client id, get your track id (by clicking embed share on the music track of your choice) and you're good to go!

Take care :) 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...