Page 1 of 1

Use specialFolderPath("engine") AND PLAY command - Solved

Posted: Wed May 21, 2014 11:21 am
by DR White
I am using LiveCode 6.6.1

My stand alone app settings for Copy files is C:/Snds_MP4/*

The MP3 file is located in folder C:\Snds_MP4\cheering.mp3


on mouseUp
put "cheering" into pSndName
put specialFolderPath("engine") & "/Snds_mp4/" & pSndName & ".mp3" into tPath
play tPath
end mouseUp

But it simply does not play in my samsung 10.1 notebook.

If I make a small change and point it to an older directory "/Snds_mp3/"that has the same file in it, it plays great, but that directory is used by another app and I want to keep the two apps as clean as possible.
I have checked a 20 times for any typos and cannot find any. Could their be a bug with the version 6?

Any help would be greatly appreciated! :(

Thanks,

David

Re: Using specialFolderPath("engine") AND PLAY command

Posted: Wed May 21, 2014 11:29 am
by Klaus
Hi David,

1.
...
play tPath
...
Is valid syntax for the MOBILE platform!

On desktop the command is:
play ac ...
## short for: play audioclip ...

2. Currently "play"ing MP3 files is not supported in Livecode on Windows!
You will need:
a. Use a player object
b. QuickTime to be installed on the target machine.


Best

Klaus

Re: Using specialFolderPath("engine") AND PLAY command

Posted: Wed May 21, 2014 11:40 am
by DR White
Klaus,

It is for an Anroid app. If I make a small change and point it to an older directory "/Snds_mp3/"that has the same file in it, it plays great.

Thanks

Re: Using specialFolderPath("engine") AND PLAY command

Posted: Wed May 21, 2014 11:46 am
by Klaus
Hi David,

ah, I see.

Hmm, like iOS, the Android filesystem is case sensitive, so make sure to spell your pathnames correctly:
My stand alone app settings for Copy files is C:/Snds_MP4/*
put specialFolderPath("engine") & "/Snds_mp4/" & pSndName & ".mp3" into tPath
See the difference?


Best

Klaus

Re: Using specialFolderPath("engine") AND PLAY command

Posted: Thu May 22, 2014 1:17 pm
by DR White
Klaus,

You were exactly right, as so many times before!! :D :D

The thought of the directory name being case sensitive entered my mind, but with so many years working in windows, I thought surely that was not the problem and it was getting very late in the evening, so I did not try it.

Thanks for very quick and valuable help,

David