Archive
Upload Videos to YouTube with iPhone custom App
With the 4.0 iOS and its new AVCaptureSession we now have access to video data, so that developers can edit this info and create cool apps such as SketchWiz, Predator Vision or iRetroscope.
One can easily create their custom videos, however it’s not clear how this videos can be shared through the net. So in this post I’ll explain how we can upload videos to YouTube with a custom app and provide some sample code to test it.
We will need the Google Data API Client for Objective-C, and install it into our application. Here are the steps to do so:
- Download the GData Client for Objective-C from here
- Open the GData project with XCode
- Drag and drop the group GData Source from the GData project into your project (reference it or copy it into your project directory, up to you)
- Optional: In your project delete all groups inside GData Source but YouTube and Commons. This will make the compilation process much faster. You will have to comment the imports in your GData.h
- Add the Security.framework into your frameworks
- In the properties of your target, add the -ObjC to your Other Linker Flags setting
- In the properties of your target, add the /usr/include/libxml2 path to your Header Search Path setting
- Make sure your C Language Dialect is c99 in your target properties
You should now be able to compile the API within your own app.
Next step is to go here to get a Developer Key from Google. Your Developer Key and Client ID are required in order to use the GData API.
Once you have them, take a look at the simple YouTube upload test sample code based on the Mac OSX Example inside the GData Client Objective-C code and add them there in the YouTubeTestViewController.m.
For more information and other type of installations for the API, please read the API documentation.
I hope it helps. Any feedback is welcome as always.
I’d like to be a Lemur
Anathem
Neal Stephenson es un autor de peajes. Su último libro, Anathem, se compone de otras mil páginas de las cuales casi la mitad son una semi barrera intelectual para poder entrever lo que Stephenson tiene entre manos. Unas quinientas páginas de peaje.
Y una vez pagado, todo se conecta. Todo empieza a tener sentido. Un nuevo mundo se abre y empiezas a conocer tu propio mundo un poco más. Stephenson nos enseña las bases de la filosofía, de las religiones, y del comportamiento humano. Nos descubre un nuevo universo, con otro planeta y otras creencias, todo muy parecido a nuestro mundo.
Una vez más, después de leer a mi autor favorito, he vuelto a aprender muchísimo. Este libro es inmenso, ambicioso a más no poder, y abarca un sin fin de teorías sobre nuestra existencia que nunca antes me había planteado. Desde que lo terminé todo a mi alrededor se ha vuelto mucho más cuestionable.
No puedo comparar el Criptonomicón -la obra más famosa de este autor- con Anathem. Ni el Ciclo Barroco. Son demasiado distintos. Y demasiado buenos todos. El señor Stephenson es grandioso. Leedlo y lo comentamos, que este libro te deja una sed de conocimiento que pocas veces he experimentado.
Como ya sabéis, odio que me expliquen algo de algún libro/película que quiero leer/ver, pero decir que, por ser un Stephenson, el final de Anathem es extremadamente bueno. Tal vez el mejor de todos sus libros. Supongo que ha escuchado las quejas de sus lectores. Bien.
¿Para cuando el siguiente, Neal?
