Discussion Forums  >  Introduce Yourself

Replies: 20    Views: 101

Jonathann
Aspiring developer
Profile
Posts: 35
Reg: Nov 22, 2012
United Kingdom
4,050
12/04/12 05:46 AM (13 years ago)

Just starting out - PDF Plugin and MP3 player tutorials anywhere?

Hi there, Just starting out on Buzztouch. Worked through the iOS tutorials but still a little lost on how to use the plugins. Does anyone know of any tutorials on how to link a PDF document to the PDF plugin that I can work through? This is probably very simply but I am lost in all the code in the tutorials and there is nothing covering this area. Also I noticed there are no plugins or tutorials for adding and playing mp3 files. Any help on this would be appreciated. If there are more tutorials I could follow that would be ideal. Thank you for your help Best wishes Jonathan
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
12/04/12 07:07 AM (13 years ago)
Hi and welcome to BT! You are in good company in the UK, few users groups popping up around the country. Just select the PDF screen, reference your local file in the settings - sample.pdf - and then drag the actual PDF file into your Xcode project. Clean, build etc and it should be there. Once again welcome to BT!
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
12/04/12 09:51 AM (13 years ago)
Hi and also welcome, I want add, to the comment of MacApple, that in a couple of days my plugin will be in the market called: Audio Streamer. Have a sneakpeak at www.bt-addons.com/the-plugins/the-audiostreamer-plugin.html Best Regards, Danny
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
12/04/12 09:52 AM (13 years ago)
Nice one PSMDanny!
 
Jonathann
Aspiring developer
Profile
Posts: 35
Reg: Nov 22, 2012
United Kingdom
4,050
like
12/04/12 10:21 AM (13 years ago)
Thank you for your comments. The audio plugin sounds great. Will users be able to add mp3s into their apps rather than streaming? I will also try what mentioned about the PDFs. I did notice you can upload them directly into buzztouch before creating the source code but will try what you mentioned. Thanks for your help
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
12/04/12 10:38 AM (13 years ago)
Thanks MacApple this will be a nice one, @Jonathan: No, users are not able to add mp3s. You, as a developer, are the one who decides what mp3s will play in your app (if that's what you mean!). Best Regards, Danny
 
Jonathann
Aspiring developer
Profile
Posts: 35
Reg: Nov 22, 2012
United Kingdom
4,050
like
12/04/12 01:48 PM (13 years ago)
Thank you for getting back to me. I meant can me (the developer) add mp3s to the project from my computer rather than providing links from the internet to stream. It does look like you can do this from your description. Sorry I was not clear in my last message. I look forward to trying the plugin. Thanks
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
12/04/12 05:55 PM (13 years ago)
can't wait Danny. that's like an early X-mas present. just got that peakmeter you suggested working in my audio viewcontroller, but dealing with all the bkg audio is a pain. I keep avoiding it and would rather work on some of my other plug-ins. Super anxious to see the implementation you use. Already learned a ton looking at that guide. I've got an album 'cover flip' view i'm all set to drop on top of that lovely uiview I see on this streamer. I'm struggling with the rest of the interface/design look, but your work and layout is top notch. This will sell like hotcakes. Many thanks. Nice work!
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
12/04/12 06:03 PM (13 years ago)
Thanks Atrain for the kind words, There were some (small) issues that David offered to solve. Yesterday I had conversation with him by email and he said it could take just a couple of days before we could put it in the market. Fingers crossed..... Best Regards, Danny PS sorry jonathan for getting a bit off-topic
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
12/05/12 08:56 AM (13 years ago)
If I had been able to work out the Bkg audio I would have thrown an audio plug-in up on the market a few months back. The closet I get to TRUE bkg audio is using MediaPlayer class and invoking the ipod player. If I use that class and initialize a session with a preloaded playlist - the bkg audio works great with no other mods to the BT code. I added a media picker to my viewcontroller and you can que up a playlist and launch it, exit the app and the audio is still going. But at that point you have to control the audio session with the iOS music app because when you return to my app, the session is not present. AVfoundation is just a complex class. I've used audio sparingly in my apps because it's never worked the exact way I want. I hope you have had better luck! also - welcome Jonathan! keep in mind that you can't upload .mp3 files to your BT panel unless you are running the self hosted package!
 
Jonathann
Aspiring developer
Profile
Posts: 35
Reg: Nov 22, 2012
United Kingdom
4,050
like
12/05/12 11:02 AM (13 years ago)
Ok thanks, it seems adding audio is going to be more complicated than I first thought. Thank you for your comments
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
12/05/12 11:38 AM (13 years ago)
no problem. it's a piece of cake to get the file to play in a viewcontroller. It's when you exit the app that the problems start. Some apps I download from the store work with bkg audio and others don't. Seems to be a pretty common iOS question/issue on Stack Overflow. I've tried about 20 of the fixes with varying degrees. Just found nothing that works consistently enough for me to want to support as a BT plug-in... That PDF in the app tho, you're straight there?
 
Jonathann
Aspiring developer
Profile
Posts: 35
Reg: Nov 22, 2012
United Kingdom
4,050
like
12/05/12 12:28 PM (13 years ago)
Thanks for getting back to me. Only just started to use Buzztouch so all very new. I am sure adding a PDF is probably very simple but I still can not figure this out. In the Buzztouch panel I have created a row and added the PDF plugin. When I go into the PDF Plugin Document Location there are 2 options. I can upload a file or use a link. Do I create a link to the file on my computer? If so how do I do this? Where do I add the PDF document in the Xcode project after downloading and opening the source code? Please accept my apologies if this is very basic. I am sure it will all make sense soon enough. ATRAIN53 - thank you for your help. I will probably be ok just using the audio within the app so could use the view controller that you mentioned. Will look into this when I am a little more familiar with how everything works.
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
12/05/12 12:48 PM (13 years ago)
No prob- to make that pdf work. 1) add the pdf screen to the app. 2) drag the actual pdf file to the "BT_Docs" folder OR store the file on the internet somewhere Step 3 If you dragged the pdf into your project, then just put the name of the file in the field labeled "File name in Project". just the name and extension like this : mypdffile.pdf If it's a file on the internet, then use the full url in that filed labeld "Load from this URL instead" http://www.goirish.com/beatalabama.pdf Build your project and run and you should see the pdf when you visit that screen on your app. lets wait on Danny's Audio plug-in, that's gonna be worth it!
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
12/05/12 12:52 PM (13 years ago)
Hi Jonathan, Don't worry to ask questions (simple or advanced) we're all trying to help. you're on the right track: If you use the field 'File Name in Project' you just have to fill-in the name of the pdf document. Example: my_pdf_document.pdf (make shure you're filename has no spaces in it otherwise this could lead to errors). After that, in xcode, drag the file (pdf-file) from the finder into the folder BT_Docs. A popup will appear and make shure to check the copy funtion. That's it! If you use the field 'Load from this URL instead' you have to enter an external location where the pdf is stored. Example: www.mywebsite.com/my_pdf_document.pdf (or us a public link from dropbox if your document is stored there). That's it For the audio: It isn't hard once my plugin is released. Just fill-in the url for the mp3, title, scrolling text, detailed text and connect it to a menu. But we'll have to wait untill it's released in the market. Hope this helps. Best Regards, Danny PS haha ATRAIN was first but now you got two answers. Couldn't go wrong now....
 
Jonathann
Aspiring developer
Profile
Posts: 35
Reg: Nov 22, 2012
United Kingdom
4,050
like
12/06/12 09:54 AM (13 years ago)
Thank you for your help. The BT_Docs folder shows in my source code download in Finder but not in xcode. Do I need to drag the BT_Docs folder into Xcode first?
 
Jonathann
Aspiring developer
Profile
Posts: 35
Reg: Nov 22, 2012
United Kingdom
4,050
like
12/06/12 02:10 PM (13 years ago)
Just to follow from my last message. I added the pdf document myfile.pdf name into 'File Name in Project' of the 'Document Location' of the PDF screen in buzztouch. I then download the source code and loaded the project in xcode. I then copied over the BT Plugins folder to xcode. Next I added the myfile.pdf to the BT_Docs folder in the source code folder (not Xcode). (There is no BT_Docs showing in xcode for the project - is that correct?) When I compile and run the simulator it loads fine. When I try to load the PDF I get the following message: 'Data for this screen has not been downloaded. Please check your internet connection.' I also noticed in the Xcode output Windows the message: BT_fileManager: File does not exist in cached directory: myfile.pdf Where I am going wrong? I am also having the same issue with the image for the splash screen. Where do I need to add this? I am sorry if this is very easy. I am sure it will just click when I know what to do. Thank you for any help. Best wishes Jonathan
 
Jonathann
Aspiring developer
Profile
Posts: 35
Reg: Nov 22, 2012
United Kingdom
4,050
like
12/06/12 02:15 PM (13 years ago)
Think I have I got it now. I need to add the PDF files to the bt_screen_pdfDoc folder in xcode rather than the BT_Docs folder. Is that correct? I am guessing I need to add the splash image to the bt_screen_splash folder? Not sure how I can run the app simulator again to test the splash screen. There must be a way without having to compile again? I will figure this all out eventually!
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
12/06/12 02:28 PM (13 years ago)
Hi Jonathan, when you download the source code for your app you can open the zipfile on your computer. Inside that zipfile is a document called: instructions.pdf PLease read this manual..... Best Regards, Danny
 
Jonathann
Aspiring developer
Profile
Posts: 35
Reg: Nov 22, 2012
United Kingdom
4,050
like
12/06/12 04:18 PM (13 years ago)
Thanks, the PDF has been helpful
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
12/06/12 04:31 PM (13 years ago)
Great!!! We all have to learn....and learn everyday! Best Regards, Danny
 

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.