May 13, 2010
In response to a long time request I have added a file upload feature to QuickConnect. It works for the iPhone/touch/iPad combination.
Now you can upload any file that you have recorded, or any other file in your applications writable directory, to a web server of your choice. I have also included an example in the iPhone example directory of the download.
uploadFile(fileName, URL, userName, password, optionalMimeType, optionalURLArgumentsMap)
fileName – the name of the file to upload. Example: myAudio.caf. REQUIRED
URL – the URL of the server to which the file is to be sent. REQUIRED
userName, password – the credentials, declared on the server, for allowing upload. OPTIONAL but you should never allow uploads to your server without checking credentials.
optionalMimeType – the mime type for any file you want to upload. OPTIONAL you only need this parameter if you are uploading a file who’s name does NOT end in .caf, .png, .mp4
optionalURLArgumentsMap – a set of key-value pairs to be sent with the upload request. These represent the portion of the URL after the ?. For example http://<some url>>?color=blue&size=15
August 28, 2009
I have been playing with the video and audio tags in the UIWebView on the iPhone and WebView on the Mac. I tried them in the QT WebView as well on linux. I am pleased to announce that they work great! I have tried it with mp3, mp4, and wmv. All worked on all three platforms.
It looks like this is a good way to display videos for your users to play in your hybrid applications.
Let’s say you have a video called someCrazyMovie.mp4 that you want to display to your users. On the iPhone or the Mac put it in the Resources group of your Xcode project that uses a UIWebView. Point the UIWebView to a local html file, also in the resources file.
In this html file put the following code.
<video src=”someCrazyMovie.mp4>A movie description as an alt</video>
When you run your application you will see the first frame of the video used as a representational image. You can play it by clicking it. On the iPhone and iPod touch the movie player launches to play the movie.
The tag lets you size it, display or not display the video controls, etc.
The audio tag is used much the same way.
I’ll include an example for both the iPhone and the Mac in the 1.5.0 release of QuickConnectiPhone 1.5.0
July 2, 2009
Since hybrid applications using the UIWebView are not recognized by the Adobe Flash plugin installer it appears that you cannot embed flash in a page displayed in a UIWebView and expect it to play swf files.
It is also true that the plugin has a defect. If you launch the default browser, be it Safari or Firefox, from within your application to display play a swf file the plugin crashes both browsers. If the browser is already open and running then the browser will open a window and you can play the swf.
I am including this ability in a future release of QuickConnectMac and QuickConnectWin but my opinion is don’t waste your time. Produce the movies as mp4s and you’ll have a much better user experience.