Hello Livecode Gurus!!!
I already spend hours looking for an answer without any luck. I need to make an android/IOS APP for a customer(radio Station). They will be using Icecast to broadcast the radio station.
I used this website as a test http://www.radiowebsites.org or http://www.emisoras.com.mx as test.
I tried to use the Regular android browser and I was able to listen on the broadcast, then I tried Chrome and firefox for android and both of them play the podcast just fine.
The PROBLEM comes when I try to make my app using native controls.
when I use my native browser control it just does not work.
this is what I am using:
# create the browser
mobileControlCreate "browser"
put the result into sBrowserId
# set up the basic defaults
mobileControlSet sBrowserId, "rect", the rect of field "FldBrowser"
mobileControlSet sBrowserId, "visible", "true"
mobileControlSet sBrowserId, "url", "http://www.radiowebsites.org"
it look to me to me that HTML5 is not working on native browser. I also tied native PLAYER without any luck.
I tried all this on LC ver 7.1.1 and ver 8.0.1
can someone point me to the right direction.
Thanks in advance...
JGarza
Shoutcast / Icecast stream player
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 184
- Joined: Wed Apr 10, 2013 5:09 pm
Re: Shoutcast / Icecast stream player
One thing you could try (although my own tests don't look promising) is the new browser widget. I believe that this is fully cross platform. It is also easier to work with as it can be tested in LiveCode before being tested on a mobile device.
The browser widget definitely supports HTML5 as I am able to play videos through the <video> tag with it. However, I could not get it to work with the stream links you posted.
The browser widget definitely supports HTML5 as I am able to play videos through the <video> tag with it. However, I could not get it to work with the stream links you posted.
-
- Posts: 44
- Joined: Thu Jul 24, 2014 8:55 pm
Re: Shoutcast / Icecast stream player
Hi andrewferguson, Thanks for your reply.andrewferguson wrote:One thing you could try (although my own tests don't look promising) is the new browser widget. I believe that this is fully cross platform. It is also easier to work with as it can be tested in LiveCode before being tested on a mobile device.
The browser widget definitely supports HTML5 as I am able to play videos through the <video> tag with it. However, I could not get it to work with the stream links you posted.
I did tried the new browser widget, but I had no luck.
But Finally, the native player worked!!!!! the native Browser did not worked with HTML5 Audio.....
here is what I used
put "http://138.68.51.64:8000/live" into tStation
mobilecontrolCreate "player", "mplayer"
mobileControlSet "mplayer", "filename", tStation
mobileControlSet "mplayer", "visible", false
mobileControlSet "mplayer", "rect", "10,10,60,60"
mobileControlSet "mplayer", "showController", false
mobileControlDo "mplayer", "play"
JG