Oh man this thread just became a double win, because I actually had some suggestions for your App!
q) "Can you explain what you ended up doing to get this to work?
a) Since Taskers send intent is currently broken (You cant set data and mime type at the same time), do this instead
In Tasker choose "Run shell" and type this as the command. The URL you see as the sample, is a stripped down URL, down to the actual Audio stream for the Polish Radio station
http://www.rmfmaxxx.pl/
Note how even though this intent is passing a simple URL, the "audio/*" cast makes all the audio apps pop up as possible receivers rather than all my browsers installed.
Ok now I love the ServeStream app, because it's simple, and gets the job done. However I feel the way it handles internet streams could be improved! My suggestion is to improve the hysteresis of when the player decides to stop playing an internet stream and when it picks up again.
Correct me if I'm wrong, but I quickly glanced at your Github source William an noticed you decide to play/pause audiostreams based on logical combination of checks dependant on the carrier network + wifi network connections. I believe, correct me if I'm wrong, but if both sources drop and there is no fallback then the stream stops. Whats more annoying is throughout my morning commute, I often lose my internet connection several. The annoying part I found is that sometimes the stream won't come back at all, until I either hit 'Forward' or 'Play/Pause' again...
My suggestion William is as follows, and should be trivial, as you probably already do some buffering of the stream. The rules for when to play/pause would be as simple as checking the length of the audio stream buffer:
Play when: The buffer reaches X size.
Stop playing when the buffer reaches Y size.
Y will most likely be 0, or some small buffer size value.
X should most likely be a high buffer length such that the stream can continue to play without an internet connection for Z amount of minutes. To compute Z figure out the stream quality and multiply by amount of time to buffer.
This is a big improvement, because 1, we don't care about the state of our internet connection, if we buffer and 2 we should always be trying to automatically reconnect to the stream, and not force the user to hit play/pause/forward. If anything this suggestion could be an advanced option, although I personally don't mind listening to a radio stream that's 5 minutes behind so long as the stream is stable.
On Wednesday, May 8, 2013 10:56:44 PM UTC-4, William Seemann wrote:
Michal, I had another ServeStream user wanting to launch ServeStream directly using tasker. Can you explain what you ended up doing to get this to work? Thanks - William (ServeStream developer)