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

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
DR White
Posts: 718
Joined: Fri Aug 23, 2013 12:29 pm

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

Post by DR White » Wed May 21, 2014 11:21 am

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
Last edited by DR White on Thu May 22, 2014 1:20 pm, edited 2 times in total.

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

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

Post by Klaus » Wed May 21, 2014 11:29 am

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

DR White
Posts: 718
Joined: Fri Aug 23, 2013 12:29 pm

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

Post by DR White » Wed May 21, 2014 11:40 am

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

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

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

Post by Klaus » Wed May 21, 2014 11:46 am

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

DR White
Posts: 718
Joined: Fri Aug 23, 2013 12:29 pm

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

Post by DR White » Thu May 22, 2014 1:17 pm

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

Post Reply