Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 5    Views: 66

Jennyapps
I hate code!
Profile
Posts: 222
Reg: Jun 12, 2011
Tasmania, Austr...
4,870
02/24/14 05:08 PM (10 years ago)

When purchasing BT Plugins.. Where to add Sample JSON Data?

GDay all! Newbie here :) Ive been buying a few Plugins to experiment with in xCode. I know I have to add the iOS Project files by drag and drop for eg the AT53 Video Player - iOS Project (5 files included) ------------------------ 1) At53_video_player.h At53_video_player.m At53_video_player.xib (interface builder file, iPhone) At53_video_player~ipad.xib (interface builder file, iPad) at53_play.png (image for play button) 2) You must import the MediaPlayer Framework into your project for this plugin to work. However some plugins sometimes have additional JSON data like with this plugin: Sample JSON Data ------------------------ {"itemId":"1111", "itemType":"At53_video_player", "itemNickname":"My Video", "navBarTitleText":"My Video", "videoImageFileName":"videoThumbnail.png", "videoFileName":"rockstar.mp4" "videoDescriptionColor":"#FFFFFF", "videoDescription":"My favorite band of all time"} ----------------- So my newbie question is where do I insert this so as not to get an errors? Thanks all for your continued help and patience Terry
 
LeonG
Apple Fan
Profile
Posts: 694
Reg: Nov 08, 2011
Hamburg
17,740
like
02/24/14 05:16 PM (10 years ago)
Hey Terry, no need to add that anywhere as it is just some sample code to show you how the plugin works. Good to go with all plugins if you add the frameworks if necessary and drag the files in your project as you already mentioned. Have fun.
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
02/24/14 05:17 PM (10 years ago)
Hey. Hope I am reading this correctly. Ignore the 'Sample JSON Data' if you are looking to enter that somewhere, it is just showing you some sample JSON output for this plugin. MediaPlayer framework I believe then is your issue? In Xcode click on Targets>YourappName>Build Phases tab. You will see where it says: 'Link Binary With Libraries' You will be looking to click on the + sign to add in the MediaPlayer framework into your app. I always thought this was included but on phone so can't tell right now. You mention errors, are you getting any?
 
Jennyapps
I hate code!
Profile
Posts: 222
Reg: Jun 12, 2011
Tasmania, Austr...
4,870
like
02/24/14 06:17 PM (10 years ago)
Thank you Leon - Good to know. Thanks MacApple - Not getting any errors as yet, as I will be playing with xCode tonight (Aussie time) Thanks all! Cheers Terry
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
02/24/14 06:18 PM (10 years ago)
Nice one, peace.
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
02/24/14 11:11 PM (10 years ago)
The purpose of the sample data is so that you can copy the format to make your own JSON data for your app. Imagine you needed 500 screens in your app....it isn't practical to enter them in a control panel so you create the app data programmatically. In addition, you can put that JSON on a dataURL on a menu or map, and load it dynamically. It is what makes Buzztouch so powerful.
 

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.