[Suggestion] Add a "Play audio from URL" action

Discussion and feedback on Construct 2

Post » Tue Dec 16, 2014 4:21 pm

Hi Everyone!

I am currently making a enhanced endless runner game, and to make it more interesting and unique I decided to add an option to upload your own music to the game so you can run at your own pace (literally too, the game's speed and background are dependent on the music being played. Still a concept, but one problem at a time).

I'm at a roadblock as there is no way for me to play music files uploaded by the user, and although the File Chooser Plugin takes care of the first step of getting the URL, the Audio Plugin only wants to play files that I have uploaded to the project before running.

So yeah, just a suggestion for a new feature: an action added to the Audio Plugin to allow it to play audio from a URL, whether it's local or on the internet. Unless there already is a way of doing that and I haven't figured it out yet. I would appreciate a heads-up if that is the case.
B
11
S
1
Posts: 2
Reputation: 620

Post » Tue Dec 16, 2014 6:18 pm

Hi, try using the video plugin instead.

See my attached example. To test it type in the url to any mp3 you want, hit play and it should play it. I would imagine if you point the plugin to the right location you will be able to stream user uploaded media.
You do not have the required permissions to view the files attached to this post.
ImageImage
Mr. Green - Platform/puzzle game out now!
B
25
S
7
G
1
Posts: 222
Reputation: 3,350

Post » Tue Dec 16, 2014 7:38 pm

Wow! That was a fast reply! :D

Thank you so much for the example; I implemented it in my game and it works like a charm!
B
11
S
1
Posts: 2
Reputation: 620

Post » Thu Feb 16, 2017 3:09 am

Still working thanks FredQ
B
28
S
8
G
6
Posts: 25
Reputation: 4,708

Post » Wed May 03, 2017 12:44 pm

@FredQ
@8tomo8

Doesn't work for me. Did sth changed with this plugin or sth else?
B
36
S
13
G
2
Posts: 200
Reputation: 3,868


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 10 guests