Streaming audio under Linux?

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

rwhe
Posts: 16
Joined: Fri Aug 02, 2013 5:52 am

Re: Streaming audio under Linux?

Post by rwhe » Sat Aug 03, 2013 3:23 am

Funny thing -- when I got home tonight, I opened the stack I was working on, which had a player already named with an audio stream from last night, and the stream started playing instantly, without my doing another thing.

You guys aren't telnetting into my development box, are you? ;)

wsamples
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 264
Joined: Mon May 18, 2009 4:12 am

Re: Streaming audio under Linux?

Post by wsamples » Sat Aug 03, 2013 4:14 am

If it's any consolation, I'm having a hard time duplicating the behavior I was getting with suspending messages. There's obviously some detail I wasn't aware of :roll: I have found some interesting new behavior.

wsamples
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 264
Joined: Mon May 18, 2009 4:12 am

Re: Streaming audio under Linux?

Post by wsamples » Sat Aug 03, 2013 1:42 pm

I have a simple "proof of concept" standalone that opens, with the source (filename) of the player empty, with buttons to start and stop the player. The start button sets the filename to the URL and starts the player. The stop button stops the player and sets the filename to empty. Also a button with the script: 'get shell("killall mplayer")'. This all behaves very well without any unexpected or disruptive behavior. Your project seems doable :)

rwhe
Posts: 16
Joined: Fri Aug 02, 2013 5:52 am

Re: Streaming audio under Linux?

Post by rwhe » Sun Aug 04, 2013 3:59 am

That's pretty much what I came up with too, minus the button to kill mplayer, plus a field where you could paste in a streaming URL to play. Works fine. I agree, the project now seems feasible. None of the rest of it should tax LiveCode.

rwhe
Posts: 16
Joined: Fri Aug 02, 2013 5:52 am

Re: Streaming audio under Linux?

Post by rwhe » Sun Aug 18, 2013 1:00 pm

There's some factor at work I don't understand. Starting with the simple proof of concept as described above, I developed a series of more elaborate but still working stacks, until I made one that wouldn't work, no matter how I tweaked it.

I compared the new stack to the earlier stacks to see what I was doing wrong, but now the earlier stacks wouldn't work either.

I don't know what the issue is. I didn't even upgrade LiveCode.

I'm beginning to think I should go with earlier suggestions and call an external audio program like moc, but this is in no way portable to other operating systems, negating one of the huge benefits of LiveCode.

Post Reply