Search in documentation:     Advanced search
Browse by category:

iPhone Application code sample

Views: 903
Votes: 2
Posted: 15 Sep, 2009
Updated: 17 Nov, 2009
Description:

Find out how to quickly use our APIs to play videos in you iPhone Application!

This project is a very simple iPhone Application sample : user clic on the application icon and video is launched into the iPhone player.

IMPORTANT NOTICE  : iPhone encoding format is a customer only feature and is not available by default. Please contact your account manager to know more about iPhone features in Kewego products.

Technical specifications:

Programming language xCode
Requirements Operating system : Macintosh
Build Requirements: iPhone SDK 3.0 (xCode compilator included)
Runtime Requirements: iPhone OS 3.0
Download ( Version 1.0.0)
 Download code sample


Project overview:



 1. Clic on the Kewego Icon
   2. Video is displayed in iPhone format
 


Instructions:

Unzip the archive file and Open it in your iPhone developpement manager.

Content :

This sample project contains various folders needed to make it work correctly. Find the folowing files :

ASIHttprequest : standard open source network framework needed to use HTTP request (see more details on http://allseeing-i.com/ASIHTTPRequest/)
Classes : classes of the project (see details shown below)
sample.xcodeproj : project shortcut (to open your project in xcode)
TouchJSON : framework : used to parse json (javascript object notation) message returned by kewego API (see : http://fr.wikipedia.org/wiki/JavaScript_Object_Notation)

-------------------------
In Classe directory :

- sampleAppDelegate.h and sampleAppDelegate.m : Main class of the project. Instanciate and uses VideoEngine and KWGAPICaller classes. Notice that if you want to play your own video can to replace the SIG of the video (Video need to be available in Iphone format).
 


- KWGAPICaller.h and KWGAPICaller.m : Class used to comunicate with KEWEGO API. Notice that you will have to replace the ApplicationKey by your own Application key to play your own videos in the sample.



- VideoEngine.h and VideoEngine.m : Class used to play video in iPhone standard player.




RSS