Discussion Forums  >  Uncategorized

Replies: 9    Views: 464

Mr Mat
Aspiring developer
Profile
Posts: 8
Reg: Jan 25, 2011
Orlando, FL
80
01/26/11 08:42 AM (15 years ago)

Pop out URLs to browser not inside app

I am having troubles figuring out how to get a link inside a custom html to pop up into the native web browser so the listen live feature can be used to multi task. Can someone please advice how I would do this?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
01/26/11 12:31 PM (15 years ago)
Hi... Android or iOS? There are no built-in ways to do this but a few hacks exist (thanks to our growing community). a) What platform b) What app (post the name so we can look from the backend) c) What screen in that app (post the screens title so we can look from the backend)
 
Mr Mat
Aspiring developer
Profile
Posts: 8
Reg: Jan 25, 2011
Orlando, FL
80
like
01/26/11 12:42 PM (15 years ago)
Its Bubba Army and the page is listen live or any page for that matter. For Android. Thanks!
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
01/26/11 01:28 PM (15 years ago)
Got it working. Here are the steps we took to reproduce - and fix. You'll want to re-download the project, re-compile, then re-test. It will take a few moments to re-submit to the Android Market but it's the best option. a) We created a CustomURL screen to the Bubba Army page: http://m.radio.com b) We viewed the Eclipse Console to see the URL that was trying to load when the item was clicked. Bubba's webpage opened with no problem. c) We tapped a link to play an audio stream - white screen, nothing, just like you described d) We viewed the Eclipse Console again to see the URL that was trying to load after clicking a stream: This is the URL: http://m.radioio.com/player.php?channel=9001&t=0&s=0&EXT=.mp3 e) We adjusted the CustomURL source code to intercept link containing an .mp3 extension so we could tell the phone to use the native software to play the audio. (note, the reason this wasn't working is because that URL is loading a .PHP page, then redirects, then does some other neat stuff to get begin the stream. Doesn't work so good outside of the native browser (like we already discovered in step c above) f) We updated the source code in the code-base so others can enjoy your findings / fixes / discoveries Re-post if you find a device it doesn't work on. Also, you'll need to re-create the CustomURL in the control panel with the http://m.radio.com URL and screen title.
 
paulwyre
Apple Fan
Profile
Posts: 139
Reg: Dec 21, 2010
USA
1,390
like
01/26/11 01:44 PM (15 years ago)
I miss hearing Bubba, Gonna have to download your app :-)
 
Mr Mat
Aspiring developer
Profile
Posts: 8
Reg: Jan 25, 2011
Orlando, FL
80
like
01/26/11 02:09 PM (15 years ago)
Ok think it worked :) can you try downloading the new version from the market? We are using emulators this end. Thanks again.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
01/26/11 02:18 PM (15 years ago)
Got it. So... re-downloaded, re-launched. My thoughts.. a) Listening now, works good.. but... b) When I use the Listen Alt menu options, the HUGE heavy web-page takes forever to load. Anyway to lighten up this page for mobile? Stared at the white screen for a bit while it loaded. c) After loading, the listen live link loaded the menu of channels fast - probably javascript. This could explain why the first screen took so long. It may be that the Listen Alt item loads an entire 'web-app' funny d) Tapping home button (putting the app in the background) continued to play the audio but not for very long. It turned off about 10 seconds after I put the app in the background. Could be a limitation on my device. Good work.
 
Mr Mat
Aspiring developer
Profile
Posts: 8
Reg: Jan 25, 2011
Orlando, FL
80
like
01/26/11 02:33 PM (15 years ago)
So perhaps the pop out URL is the best solution? Is there a way around this yet?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
01/26/11 02:42 PM (15 years ago)
Maybe i'm not understanding this. Pop-Out - doesn't this mean load it in the regular browser? This is what's happening now. If you're referring to the way iPhone and Safari handle new screens, I'm not sure this would change anything.
 
gojuryu
Android Fan
Profile
Posts: 10
Reg: Aug 05, 2011
San Francisco
100
like
08/08/11 02:12 AM (14 years ago)
This same modification for MP3 should also be applied to mp4 and 3GP. For Android this would initialize the default video player.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.