Load audio files (by default) in LiveCode 8

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Fermin
Posts: 149
Joined: Fri Jun 05, 2015 10:44 pm

Load audio files (by default) in LiveCode 8

Post by Fermin » Tue May 17, 2016 11:39 pm

Hi, please...

In LiveCode 8, how can I load (by code, 'set the filename of player...') an audio file into an object player?. It seems that, by default, only allows videos.

It is possible from the inspector because in the dialog box you can choose the format (Videos, Audio Files, All Media Files, All Files) but from a script I get the message: "could not create reference movie"

In LiveCode 7 does not exist the problem.

Thank you very much...

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Load audio files (by default) in LiveCode 8

Post by Klaus » Tue May 17, 2016 11:45 pm

Hola Fermin,

hm, just made a quick test with LC 8.01 RC1 and this:

Code: Select all

on mouseUp
   set the filename of player 1 to "/Users/klaus/Downloads/Airto Moreira - Seeds On the Ground - 1971.mp3"
end mouseUp
works as exspected!
Any special audio format that does not load?


Best

Klaus

Fermin
Posts: 149
Joined: Fri Jun 05, 2015 10:44 pm

Re: Load audio files (by default) in LiveCode 8

Post by Fermin » Wed May 18, 2016 12:08 am

What a shame!. My error in a character. Today is my first day with LiveCode 8 and I have been very impatient.
Thank you very much, Klaus, for answering so quickly.
:)

Post Reply