Discussion Forums  >  Uncategorized

Replies: 14    Views: 650

Scott
I hate code!
Profile
Posts: 1
Reg: Jan 06, 2011
Los angeles
10
01/06/11 04:52 PM (15 years ago)

Pictures with audio

Can I add multiple pictures to one screen with an audio cue on the touch of each picture?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
01/06/11 06:47 PM (15 years ago)
Not in the current version without some kung-fu. The latest release (coming soon) does offer this. Today, you could put together an HTML 5 screen, park it on your website, then use a CustomURL screen in your app to accomplish something similar. Not the best approach but doable.
 
elaine
buzztouch Evangelist
Profile
Posts: 385
Reg: Dec 26, 2010
Ireland
3,850
like
02/06/11 07:19 AM (15 years ago)
Hello, Would anyone knwo how to do this in 1.5? thanks a million! Elaine.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
02/06/11 09:25 AM (15 years ago)
Multiple images with one screen, audio cue on touch: The Gallery feature assumes the same audio track will play while browing the images. If you need a different audio file for each image, you could create a menu of items, each leading to it's own Image Gallery. Each gallery would have only one image and one audio track and no back/ext buttons. This almost sounds like an iTunes kind of thing. Maybe try this: a) Create a menu list b) Add some items to the list c) For each item, use a URL for the icon to show a larger thumbnail (adjust the row / icon size as needed) d) Tapping each row loads a Gallery with the same image URL and an audio track
 
elaine
buzztouch Evangelist
Profile
Posts: 385
Reg: Dec 26, 2010
Ireland
3,850
like
02/09/11 12:46 PM (15 years ago)
Thanks David. Is there somewhere that says the standard sizes your pics should be for the menu icon & for the iphone full screen? Cheers again, Elaine.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
02/09/11 01:09 PM (15 years ago)
Hey... Image sizes are a bit tricky. For the menu screens, the advanced settings can get a little overwhelming because of all the options. If you use the one of the included icons, they are about 30 x 30. It gets a little tricky when working with your own icons or images. Example: If you have a list of People in a list-menu, the icons look great around 60 x 60. You could park these images on a server somewhere and use the URL or you could pull them into the project and use the file name. If you use larger images like this, the 'row height' will also need adjusted. If you look at the native iTunes app on your phone, the artwork for songs (album art) is about 75 x 75 in the list of songs with title and description info 'sharing that height' for the text. For full screen artwork, like the background of a menu, or in an Image Gallery, iPhone is 320 x 480. iPad is much larger at 768 x 1024. The tricky part is balancing the sizes. If your images large, they will look great in the gallery but will also take some time to download. If they are small, they will look great on iPhone but not so good when they are scaled up on iPad. Again, finding a balance is sometimes tough. If I scroll through the Photos app on the iPhone, some of my family photos are HUGE and scale nicely, other don't, it depends on the camera that took them ;-)
 
elaine
buzztouch Evangelist
Profile
Posts: 385
Reg: Dec 26, 2010
Ireland
3,850
like
02/19/11 09:20 AM (15 years ago)
Stuck again, very hopefully very close! :D Made a new 1.5 app. Put in icon, downloaded to my MAC and running emulator now. Made a new menu-list. This menu now launches when I open app on emulator :) Made 3 menu items, called (wait for it) 1, 2 and 3. Tap on any menu item and you get corresponding image gallery (3 made, 1 per menu item). Then had fun changing screen colours :) Dragged a few .mp3 files to xcode program where my app was running, and put them into folder 'BT_Sound'. They do play on their own, and are definitely in this folder as well. In menu item 2, when I click menu item properties I can assign a standard mp3 (funk.mp3) and it plays fine. In menu item 1, when I click menu item properties I typed in 4.mp3, which I can see on my MAC in BT_Sound folder, refresh emulator but no sound plays. When I go into image gallery 1, I type in image.jpg which I also downloaded to xcode to 'BT-IMages folder' and it doesn't show either. I reckon I'm putting the paths in the wrong way somehow :) Help? :) Elaine.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
02/19/11 12:41 PM (15 years ago)
Sound first: Let's see if we can explain this. For the menu-item clicks, the Menu Item Properties screen allows you to enter a file name for a .mp3. Example: funk.mp3 is a short sound included in the download. Becuase you are entering a sound file here, you are telling the app that 4.mp3 is a SOUND EFFECT for the menu-item tap, not a background sound. Sound effects are different than background-sounds. Sounds effects are super-short sounds that are included in the download. It's unlikely that 4.mp3 is a sound effect is is probably a longer sound, like a song or something? Not sure, we don't have 4.mp3 to listen to ;-) So, for sound effects attached to menu items, use the provided sounds. Background sounds are different: These are sound files you provide, such as 4.mp3 These longer sounds are assoicated with Screens, not menu-items. When a screen loads, it can load a background sound file (4.mp3) you added to your BT_sounds folder. I'm not sure if I'm explaining this OK or not? To play a sound-effect (super short) when a menu item or button is tapped, use the Menu Item Properties. To play a longer sound when a Screen loads (the little sound-player thing-a-ma-jig), use the Advanced Screen Properties for a screen. Images: You have three image galleries created, you have them named '1', 'Sound 2', and 'Pic 1' One of these galleries has no images, one has one, and one has 2. The image names you entered are src1.jpg and src2.jpg - these are the files that need to be in the BT_images folder (you could alternatively us an image URL). I'm not seeing anywhere where you have image.jpg entered? So, if you have an image in your BT_images folder named image.jpg - it's not going to show anywhere? Again, hope this makes sense.
 
elaine
buzztouch Evangelist
Profile
Posts: 385
Reg: Dec 26, 2010
Ireland
3,850
like
03/01/11 11:14 AM (14 years ago)
Hello, Sorry still can't get it to work :) I download it again today, and dragged some mp3s into xcode. See pic below. Booted up the simulator. All going well. http://i120.photobucket.com/albums/o182/inhs_photos/Screenshot2011-03-01at180605.png Then went into buzztouch and changed the properties of the gallery item, see pic below (I deleted all of the sfx I had in the menu items as above). http://i120.photobucket.com/albums/o182/inhs_photos/Screenshot2011-03-01at180627.png No joy :( Pic below. It does look a little like it's thinking about playing audio though (my speakers work btw lol :) http://i120.photobucket.com/albums/o182/inhs_photos/Screenshot2011-03-01at181312.png David, I don't want to keep bugging you so if anyone else got past this i'd love to hear how :) oops sorry I thought the pics would embed! THANKS AGAIN! Elaine.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
03/01/11 11:31 AM (14 years ago)
@Elaine: You're not bugging! LOL. I enjoy this, I really do. Firstly, the screen shots on photo bucket are huge, keep this up while we figure out what's happening. The app is recognizing that the screen should have audio, which is why the audio-control button appears in the toolbar. So far so go. What happens when you tap that button, it should open the audio player controls. Next, have a look at the Console with the app running in the simulator. The console will output what's happening. Is it showing an error when trying to load audio? The best way is to use the console is to clear-it when a screen loads. Then, when you tap a button, look at the output. This will show you the output associated with the button tap. It's like a long list of what the app is doing. I'de bet there's an error or something like could not load audio or whatever. Maybe post on photobucket the Console output when you're looking at the screen with audio.
 
elaine
buzztouch Evangelist
Profile
Posts: 385
Reg: Dec 26, 2010
Ireland
3,850
like
03/01/11 11:41 AM (14 years ago)
David, do you ever sleep? :) here's the pic of the error box when i tap the audio button: http://i120.photobucket.com/albums/o182/inhs_photos/Screenshot2011-03-01at183820.png I'm back in xcode then here: http://i120.photobucket.com/albums/o182/inhs_photos/Screenshot2011-03-01at180605.png but not 100% sure on how to get the error display info to display in the bottom screen. thanks again A MILLION!!!!!!!! elaine
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
03/01/11 12:01 PM (14 years ago)
This is progress! So, as expected, the audio is not loading (dug). We need to look at the Console. It may be called output console or something. With the simulator running, chose > Run > Console from the menu. See if you can post a screenshot of that. It tend's to get long, which is why I commented about using the 'clear console' button, then tapping the menu item to load the screen so we would only see the output (errors, messages) associated with the button tap. You'll see what I mean when you watch the console print things out while you click around the app. As far as any errors in the bottom of the screen... not sure what this means? Sleep: Yes, I sleep, just not much! Still horsing around (pun intended) with the darned quiz stuff for 1.5 - sigh.. Post a pic of the console ;-)
 
Annonymous
Profile
03/01/11 01:12 PM (14 years ago)
David, do you ever sleep? :) here's the pic of the error box when i tap the audio button: http://i120.photobucket.com/albums/o182/inhs_photos/Screenshot2011-03-01at183820.png I'm back in xcode then here: http://i120.photobucket.com/albums/o182/inhs_photos/Screenshot2011-03-01at180605.png but not 100% sure on how to get the error display info to display in the bottom screen. thanks again A MILLION!!!!!!!! elaine
 
elaine
buzztouch Evangelist
Profile
Posts: 385
Reg: Dec 26, 2010
Ireland
3,850
like
03/01/11 01:29 PM (14 years ago)
I found the console (was thinking of eclipse's error log as i've stared at it many times in the past!). Nothing was happening in console as I played around in app, so decided to kill the simulator & restart, and low and behold the sounds started to play!!!! thanks a million, chuffed. Lord knows what you've just helped unleash upon the world ;)
 
elaine
buzztouch Evangelist
Profile
Posts: 385
Reg: Dec 26, 2010
Ireland
3,850
like
03/01/11 01:36 PM (14 years ago)
H bingo - got why it wasn't working. Everytime you add a new sound or new picture to xcode you have to close and re-launch the simulator for the changes to take effect. Just clicking the refresh button on the simulator doesn't do anything (for me anyway!) I have sound AND PHOTOS!!! working now!! Lots of fun ahead !!!! THANK YOU DAVID!!!!! :D
 

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.