Page 1 of 1

Playing MP3 files from remote server

Posted: Fri Oct 19, 2012 10:56 pm
by doc
Hey folks,
I have a simple player app that allows the user to select a MP3 file from a scrolling list (roughly 8-12mb in size) that is located on a remote server. I have it coded to automatically start playing the file....

It works, except for having to wait for the entire file to download before it will start to play. Whether working from the IDE or from a standalone, the app becomes completely and totally unresponsive until the download has been completed and begins to play. (The machine being used to develop and test is running Windows Vista)

Does the QT player control in LC *not* have the ability to stream content from a remote server?
If it does, can you point me in the correct direction?

Regards,
-Doc-

Re: Playing MP3 files from remote server

Posted: Sat Oct 20, 2012 12:49 am
by Mark
Hi,

The question is not whether the LC QT player can "stream" content, but whether your server is set up to provide streaming content. Clearly, your MP3 file isn't served by a streaming server such as QTSS or DSS. Your webhosting company needs to install this to make streaming possible.

Another solution is to download the file and store it in a temporary file while displaying a progress bar until the download is complete. Once the file is downloaded, set the URL of a player to the filepath to the temporary file and start playing.

Kind regards,

Mark

Re: Playing MP3 files from remote server

Posted: Sat Oct 20, 2012 1:14 am
by doc
Thanks for the comment Mark...
The server isn't one of my own, so changing any of the configuration isn't really an option. Considering your statement, what I don't get is that the very same files, located on the very same server, all stream just fine using the QT browser plugin, the QT player installed on the machine and/or with other media players such as VLC, Windows Media Player, etc. I experience the problem only using the LiveCode player.

Guess I'll try to figure a workaround...

-Doc-

Re: Playing MP3 files from remote server

Posted: Sat Oct 20, 2012 1:38 am
by Mark
Hi,

They don't stream. The QuickTime app and the browser plugin don't block during download and are able to start playing while the file is still being downloaded.

Mark