Discussion Forums  >  Audio, Video, Playing, Recording

Replies: 3    Views: 205

Qlabs Ron
I hate code!
Profile
Posts: 16
Reg: Nov 19, 2013
London
1,510
11/19/13 04:53 PM (10 years ago)

add audio to an openning splash

Im thinking of my app step by step. I have a small mp3 and a transparent logo. is there any documentation on getting this together ?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
11/19/13 04:59 PM (10 years ago)
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
11/19/13 05:12 PM (10 years ago)
If the mp3 is having trouble playing, make sure it is listed under the AppDelegate.m Jake
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
11/20/13 08:36 AM (10 years ago)
This is a piece of cake on ios if you don't mind adding /editing some code to the existing splash screen code you are using? You would just import the AVFoundation into that screens header file (.h) and declare the variable. Then you and add a few lines of code to implementation file (.m) inside the viewdidload method as shown here: http://mobileorchard.com/easy-audio-playback-with-avaudioplayer/ I know BT has some options in the CP for audio playing on screens, but this is a better approach to this IMO.
 

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.