Page 1 of 1

Load audio files (by default) in LiveCode 8

Posted: Tue May 17, 2016 11:39 pm
by Fermin
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...

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

Posted: Tue May 17, 2016 11:45 pm
by Klaus
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

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

Posted: Wed May 18, 2016 12:08 am
by Fermin
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.
:)