How do I play audio files from FileChooser imports

Get help using Construct 2

Post » Fri Jul 04, 2014 12:11 pm

Is it possible to play a real-time imported (using FileChooser) audio file in construct 2? :roll:
Image
B
87
S
32
G
12
Posts: 525
Reputation: 13,109

Post » Fri Jul 04, 2014 1:39 pm

Not right now. There's no guarantee the chosen file could actually play, since there's not one format that is supported by all browsers and platforms.
Scirra Founder
B
415
S
247
G
92
Posts: 25,279
Reputation: 200,817

Post » Fri Jul 04, 2014 2:19 pm

and if i am designing for chrome/android and limit import to ogg files?
Image
B
87
S
32
G
12
Posts: 525
Reputation: 13,109

Post » Sat Jul 05, 2014 7:39 am

We prefer to only implement official features that work on a wide range of platforms, or at least appear likely to gain wide browser support. Otherwise you end up with a patchwork of features that can't be relied on to port.
Scirra Founder
B
415
S
247
G
92
Posts: 25,279
Reputation: 200,817

Post » Sun Jul 06, 2014 9:44 pm

Ok, thanks for the answer.
Image
B
87
S
32
G
12
Posts: 525
Reputation: 13,109

Post » Wed Feb 25, 2015 6:26 pm

is it possible yet? :)
B
6
S
1
Posts: 53
Reputation: 506

Post » Wed Feb 07, 2018 1:58 pm

Oh stop with the lying! You say that its because not all formats will support the file and can't be relied on to port to all devices, however you can do this with with the video plugin in which the Construct manual says to "encode your videos in at least two formats" as "browser makers have not been able to agree on one video format that can play everywhere.". What gives!?
B
2
Posts: 2
Reputation: 304

Post » Wed Feb 07, 2018 2:53 pm

Zilten wrote:Oh stop with the lying! You say that its because not all formats will support the file and can't be relied on to port to all devices, however you can do this with with the video plugin in which the Construct manual says to "encode your videos in at least two formats" as "browser makers have not been able to agree on one video format that can play everywhere.". What gives!?

@Zilten

This thread is 3 years old and things have changed considerably since.

Your post is aggressive and inflammatory. Any more posts like this and I will be more than happy to ban you.

Please be polite at all times. If that is beyond you then just don't bother posting at all.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
147
S
33
G
89
Posts: 5,984
Reputation: 62,781

Post » Thu Feb 08, 2018 3:58 pm

I didn't mean to appear that way, but it still hasn't changed. I have genuinely tried with every way I could think of to have music from the Filechooser play with Audio but it just _doesnt_ work. It is natural to feel just a little angry, right?
B
2
Posts: 2
Reputation: 304


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 1 guest