Can I launch Android browser within LiveCode Card - Solved

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Can I launch Android internet browser within LiveCode Ca

Post by Simon » Tue Jun 10, 2014 2:43 pm

HI David,
That's what the code above does. Is it not working for you?
On my Android I hear the .mp3

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

sefrojones
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 447
Joined: Mon Jan 23, 2012 12:46 pm

Re: Can I launch Android internet browser within LiveCode Ca

Post by sefrojones » Tue Jun 10, 2014 10:46 pm

Simon,

Your code works on my physical device, but it takes several minutes to load the mp3. If I test it in the emulator it also works, but it plays as well as opens a new player that can be start playing while the sound loaded with your code is still playing. But on a physical device it works, just very slowly.... I think streaming might be the way to go with this, using the player object I can have these sounds start playing very quickly...

DR White wrote:If it is challenging for you, It would be impossible for me.

Thank You so much for your time and effort,

David
David,

I wouldn't say that, I'm far from a LiveCode expert, but thanks for the vote of confidence! :D I think there's definitely a way to achieve your desired results, I think you might want to look into using a player instead of loading the whole file before playing it. There may be another option though, as I don't have much experience with sound on mobile. I will check out the native player and see what I can come up with.


--Sefro

DR White
Posts: 718
Joined: Fri Aug 23, 2013 12:29 pm

Re: Can I launch Android internet browser within LiveCode Ca

Post by DR White » Tue Jun 10, 2014 11:15 pm

How can I invoke the Android native Sound Player, while in the LiveCode Android browser?

I would have thought that selecting the text that was linked with the mp3 file would have automatically started the android sound player,
but it does not - Could it be a bug in the LiveCode " mobileControlCreate "Browser"" instruction.

I am Dead In the Water - NEED Help!

Thanks,

David

sefrojones
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 447
Joined: Mon Jan 23, 2012 12:46 pm

Re: Can I launch Android internet browser within LiveCode Ca

Post by sefrojones » Tue Jun 10, 2014 11:54 pm

David,

Check out this example I just cooked up. It's not pretty, but it uses the browser and the player control on the same card to play the MP3s. I commented the script, which is all in the card script. Test this out on your device and let me know if it works for you.... I'm sure there are ways to make it prettier/ more functional, but as far as loading the files, it starts playing very quickly......

--Sefro

Disclaimer: This was example starts playing when it launches..... :D
PlayerTest.zip
(1.92 KiB) Downloaded 164 times

DR White
Posts: 718
Joined: Fri Aug 23, 2013 12:29 pm

Re: Can I launch Android internet browser within LiveCode Ca

Post by DR White » Wed Jun 11, 2014 1:29 am

Sefro,

YOU are the Greatest!

WOW!!

It works GREAT!! :D :D

Thank You SO MUCH,

David

Post Reply