HTTP get audio stream

153 views
Skip to first unread message

Tom

unread,
Jan 29, 2014, 7:24:26 AM1/29/14
to tas...@googlegroups.com
Hi!

I'm trying to record a bit from a live radio stream (http://109.199.58.91/4784/live.mp3) with this one-step task:

Action: HTTP Get

             Server:Port   http://109.199.58.91/4784/live.mp3

             Path -

             Attributes -

             Cookies - 

            Timeout 10

            Mime Type   audio/mp3

            Output File  Records/test.mp3

Tasker (4.2u3) starts this task properly, the output file is growing by the time, but there is a problem: I can't stop this task within Tasker. 

When I try to stop it manually, Tasker collapses. The only workaround I found is disabling all data connection, than the task stops with error, at least not with Tasker's collapse.

I don't think it's the only method to stop recording, but I couldn't find a better way. Any ideas?

Pent

unread,
Jan 29, 2014, 11:49:01 AM1/29/14
to tas...@googlegroups.com, tomi...@gmail.com
Could you please give a more precise description of 'collapses' including any error messages you see ?

Thanks,

Pent

Matt R

unread,
Jan 29, 2014, 12:00:49 PM1/29/14
to tas...@googlegroups.com
Hmm ... what happens if you start another http get with an unreachable address or something?

Matt

Tom

unread,
Jan 29, 2014, 12:46:16 PM1/29/14
to tas...@googlegroups.com
Pent:
When Tasker collapses, a popup says (in my language, which is Hungarian): "Tasker not responding. Exit?" I can choose between 3 buttons: Wait, Report, OK. The  "Report" button would be useful to you?



Matt:

When my original HTTP get (http://109.199.58.91/4784/live.mp3) isn't running in the backround and I start http get with an unreachable address, a flash message says: "Error. Unknown Host in http://blahblah.hu

When my original HTTP get is running in the background, I can't initiate another action simultaneously. If I press the "Stop" button at the bottom of Task Edit, a popup says the same as I've written above (to Pent).

Tom

unread,
Jan 31, 2014, 2:56:40 PM1/31/14
to tas...@googlegroups.com
I've sent report about this error. What should I do now?

Pent

unread,
Feb 1, 2014, 2:30:54 AM2/1/14
to tas...@googlegroups.com

When Tasker collapses, a popup says (in my language, which is Hungarian): "Tasker not responding. Exit?" I can choose between 3 buttons: Wait, Report, OK. The  "Report" button would be useful to you?

No, there's no indication in the developer console which report belongs to which person.

But if the error is 'not responding', then Tasker is stuck waiting for something, rather than crashing.

I'll give it a go when I get the chance.

HTTP requests are done synchronously, so other actions won't work while it's running.

Pent

Pent

unread,
Feb 1, 2014, 2:58:49 AM2/1/14
to tas...@googlegroups.com
OK, fixed that one (the stop button in the UI will stop the task now).

However, while the HTTP Get is running, other actions are not possible.

We have to chalk that down as a current limitation of Tasker.

(otherwise you could use the Stop action to stop the task)

Pent

Tom

unread,
Feb 1, 2014, 4:24:26 AM2/1/14
to tas...@googlegroups.com
OK, I think Tasker tries to read the whole stream, so that will be a while... If the stream ever closes, then HTTP Get action could terminate properly.

Otherwise, I'm very grateful for your answers! Thanks Pent!
Reply all
Reply to author
Forward
0 new messages