CreateAudioPlayer - Forum

Forum Navigation
You need to log in to create posts and topics.

CreateAudioPlayer

I used the CreateAudioPlayer from the Multimedia Action List and the PATH of the .mp3 file is not reconized when compile.  The PATH IS reconized before compiling the app.

Ex;

CreateAudioPlayer "Container1" "C:\Users\rocote\Desktop\Musique\Liberation.mp3" true false false

Than, there is three buttons for control the Music Player;

Playing - AudioPlayerPlay "Container1"

Pause - AudioPlayerPause "Container1"

Stop - AudioPlayerStop "Container1"

Why the PATH of the .mp3 file is not reconized when the app is compiled (.exe)?

With the other compile options, (except .exe) the PATH of the audio file works.

 

Hi @rocote,

It seems a bug to me. As far as I have tested it only affects compiled executables (.exe) and not WebApps or PhoneGap.
The file is embedded but can not be accesed.
Need to do some research.
Will add more information in this thread as soon as possible.
Regards.

Ok Luis, thanks.

@rocote, after some research I have come to the conclusion it's an Internet Explorer issue.
For some weird security reason it rejects to play local files when in compiled executables.
If you place the .mp3 music file or .mp4 video file in a remote server or under a local web server it will work.
Try this for a working sample on a remote server:

CreateAudioPlayer "Container1" "https://sample-videos.com/audio/mp3/crowd-cheering.mp3" true false false

I have not found any way to avoid the problem.
Sorry.