Discussion Forums  >  Uncategorized

Replies: 9    Views: 1031

Chuck
Aspiring developer
Profile
Posts: 16
Reg: Oct 02, 2011
Fremont, CA
1,910
10/13/11 11:13 AM (13 years ago)

Menu List for MP3 Files

I am new to buzztouch, I was wondering can the following be done? 1. I have a php that returns MySQL data in json format. How do I display the json formatted data on a Menu List? 2. The list will return an url for a mp3 sermons. How do I make it when users tab the item, it will download the sermon and play them?
 
Parker @ buzztouch
buzztouch Evangelist
Profile
Posts: 1395
Reg: May 09, 2011
Pacific Grove, ...
24,500
like
10/13/11 01:14 PM (13 years ago)
Hey Chuck, Have a look at: http://www.buzztouch.com/docs/v1.5/screen_menuList.php Note the JSON needed to form the Child Items of a Menu List. -> Open up the link at: http://www.buzztouch.com/docs/v1.5/child_menuListItems.php You'll need your JSON to be outputted from you .php script to look basically like that. Step 1 - Have your Menu List Screen use a Data URL in the Advanced Properties section, that points to your .php file. Get your .php file to return the JSON to create a basic Menu List. Step 2 - Once you can get a basic Menu List working, get the Menu List Items to open up something when tapped. You'll be taking the JSON that forms your working Menu List, and looks similar to ( http://www.buzztouch.com/docs/v1.5/child_menuListItems.php ), and instead of using 'loadScreenWithItemId' you could use 'loadScreenObject'. So, looking at: http://www.buzztouch.com/docs/v1.5/childItems.php in the example provided, you would replace 'childItems' with 'loadScreenObject' and then insert the JSON for the screen you would want to launch when the Menu List Item is pressed. In your case I think you would want a Streaming Audio screen. Use this as a reference for the JSON of a Streaming Audio screen: http://www.buzztouch.com/docs/v1.5/screen_streamingAudio.php Play around with that for a while and get back to us.
 
Chuck
Aspiring developer
Profile
Posts: 16
Reg: Oct 02, 2011
Fremont, CA
1,910
like
10/14/11 01:20 PM (13 years ago)
Hi Parker, I finally got step 1 & 2 working. I was able to display the JSON data returned from a PHP script and play the audio. First was confusing on what I have to do. But after a while, I finally understand what I have to do. Now I am going to add list of videos, pdfs & docs. Thanks.
 
Parker @ buzztouch
buzztouch Evangelist
Profile
Posts: 1395
Reg: May 09, 2011
Pacific Grove, ...
24,500
like
10/16/11 05:47 PM (13 years ago)
Excellent! Yeah it can all be very confusing at first, but most people get it if they stick with it long enough. :D
 
Chuck
Aspiring developer
Profile
Posts: 16
Reg: Oct 02, 2011
Fremont, CA
1,910
like
10/17/11 04:44 PM (13 years ago)
Hi Parker, The app that I creating works beautifully on iOS emulator, but on Eclipse it does not work as in iOS. For example, Email does not work. When I click a item on the mp3 menu list, it seems to try to open the mp3 file on BT_Screen_audio. java file.(not steaming mp3 file from the web) In fact, map location did not work too. The same app does not look at feel the same. Well, I think the app running iOS emulator looks 10 times better than the Android emulator.Does that mean buzztouch works better on iOS device?
 
Parker @ buzztouch
buzztouch Evangelist
Profile
Posts: 1395
Reg: May 09, 2011
Pacific Grove, ...
24,500
like
10/17/11 05:45 PM (13 years ago)
When you signed up to become an early adopter you should have been presented with some information explaining that v1.5 for Android is a Beta release. You can also review the README.txt file in your project download folder for more information on this. It took about 1 year for v1.5 for iOS to get to where it is today. Although v1.5 for Android has only been available for 1 month, it should evolve faster, but it will take some time to be at the same level as iOS. I do believe that Map screen should be working fine. Be sure that you properly installed and configured Google's 2.2 API level 8.
 
Chuck
Aspiring developer
Profile
Posts: 16
Reg: Oct 02, 2011
Fremont, CA
1,910
like
12/14/11 06:29 PM (13 years ago)
Hi Parker, I was wondering is it possible to add image url to the dynamic generated list? I want to retrieve the data from the MySQL and display the picture of the speaker, and the title on the menu list. Can I do that? I am looking the 1.5 documentation, but I can't find the answer to do so. Thanks for any of your help. Charles
 
Parker @ buzztouch
buzztouch Evangelist
Profile
Posts: 1395
Reg: May 09, 2011
Pacific Grove, ...
24,500
like
12/15/11 02:21 PM (13 years ago)
Hey Charles, Yeah this is doable. When you use your .php script to create your menu list ( step 1 from my first reply ) it will include a section for child items that will make all of the items in that menu list. The JSON for the child items should look something like: http://www.buzztouch.com/docs/v1.5/sample-menuItemsList.txt Have a look at this page in the Documentation: http://www.buzztouch.com/docs/v1.5/child_menuListItems.php That file explains the JSON options for the different items in your list. You should see an element for adding an image based on either a URL or an embedded image. You'll be using the URL of an image on your database.
 
Chuck
Aspiring developer
Profile
Posts: 16
Reg: Oct 02, 2011
Fremont, CA
1,910
like
12/15/11 05:49 PM (13 years ago)
Hi Parker, You totally Rock! I got the images displayed alone the menu list item. I am beginning to wonder whether we need to spend a few thousand dollars to outsource our mobile app to someone else. My iOS prototype beginning to look like a 'real' native iOS app. I got to say buzztouch really got something here. I was wondering does the buzztouch server can be installed on my local Macbook Pro? or does it needs to be installed on our dedicated server? Wow, my prototype is sure going to impress my manager, especially I know nothing about Object-C programming. Charles
 
Parker @ buzztouch
buzztouch Evangelist
Profile
Posts: 1395
Reg: May 09, 2011
Pacific Grove, ...
24,500
like
12/16/11 01:42 AM (13 years ago)
BT Server was designed to run on a LAMP (Linux, Apache, MySQL, PHP) stack. You can get one for fairly cheap from rackspace.com, etc.
 

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.