How to play music from a URL on Android?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Klaus
Posts: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: How to play music from a URL on Android?

Post by Klaus » Sat Apr 09, 2022 7:27 pm

Code: Select all

...
put specialfolderpath("documents") & "/name of a file that has still to be downloaded.mp3" into tFile
if NOT(there is a file tFile) then
  ## you need to download all files...
end if
...
I HIGHLY recommend that you check one or all of these stacks to learn the basics of Livecode:
http://www.hyperactivesw.com/revscriptc ... ences.html

liveCode
Posts: 119
Joined: Sun Oct 17, 2021 5:53 pm

Re: How to play music from a URL on Android?

Post by liveCode » Sat Apr 09, 2022 7:41 pm

Thanks.
And how do I get the file size (how many megabytes does it have)

liveCode
Posts: 119
Joined: Sun Oct 17, 2021 5:53 pm

Re: How to play music from a URL on Android?

Post by liveCode » Sat Apr 09, 2022 7:49 pm

I found the code

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”