I want to create a multi photo upload for my phonegap app -- currently this is not available so I'm wondering if it would be possible to create an HTML version of the camera roll.
My thought would be if I could get access to the list of photo URI's from the camera roll, I'd display them in my own HTML version of the camera roll, allow multiple photos to be selected, and then upload the ones that are selected - bypassing the native camera roll.
Is this possible?
Thanks!
This is not possible because iOS apps are sandboxed:
For security reasons, iOS places each app (including its preferences and data) in a sandbox at install time. A sandbox is a set of fine-grained controls that limit the app’s access to files, preferences, network resources, hardware, and so on. As part of the sandboxing process, the system installs each app in its own sandbox directory, which acts as the home for the app and its data.
(Source: Apple's iOS App Programming Guide)
This means that an app can only access its own files directly. So the photo roll is the only way for you to access the photos stored on the device.
Related
I am new in iPhone development. I want to create an app which will show youtube videos those i will upload in my account.
I will have admin panel in my app, from where i could control my videos. Suppose i developed the app and launched on app world.
Now after some time I want to add new videos to my account , should i need to write extra code or it will reflect automatically via used link in iphone app?
Speaking generally, you could have the application find your newest videos released in Youtube and display them in the app. Therefore, you would not need to have any more code.
There would be no code for any video within your app. Instead, have your app get the list of the videos from Youtube and play them.
I'm creating a website which I would like to be supported on the iphone as well. The site allows users to upload images and manipulate them. On a desktop the user will simply click the upload button to select the file from their computer and upload it to the site. But this will fail on an iphone.
Is there any way for a pure web app which is using php/mysql/js and runs inside the browser to get images from a user's camera roll? Does Apple offer any APIs to make this possible?
No, it's not possible currently - but apparently iOS 6 is going to support image and video uploads from MobileSafari.
(Apart from that, you can ask your users if their device is jailbroken and id so, suggest them downloading Safari Upload Enabler from Cydia).
I want to develop a web app using html5, js. One of the feature is to launch device Camera and record video, take a picture and access photo album. Is it possible to access via web app if i develop? I saw in the forums that, it is saying not possible in some places and it is possible in some places. I would like to know, is it really possible to access directly camera and album etc. ?
Please suggest!
Thank you!
It's not possible to access phone camera using Web app, as the "Web APP" typically runs in the browser of device.
Though there are some frameworks (like Phonegap) allows you to embedd your web app into native container. With this approach and added libraries from such framework you can access some of those native API's and Device Hardware.
One Possible solution is,
Create one app and distribute it using app store
using your webapp, you can connect to above app using url-scheme
http://code.google.com/p/iphone-photo-picker/
go to above link, where you can find complete code for it.
Is there a way to specifically format a link on my page to tell a mobile device such as an Android phone or an iPhone that when a user clicks a link to a mp4 file (for example) to go ahead and play it (or ask the user if they want to play it) using their phone media player?
I'm working on a web app with mixed results, most of the times the device just goes straight into download mode, and attempts to save the file to the downloads folder, but what I would like is to make it so the device starts automatically playing the file as soon as possible.
My app is basically a file sharing app that creates qr codes and thus allows you to share media to mobile devices... the thing is, when it comes to video files and maybe images, I want the phone to automatically display the media and not just download it.
Any help would be greatly appreciated. You can see the app here http://scan2see.me
You could always use a <video> tag to make your videos play instead of just linking to them.
FYI iOS devices never download anything, unless jailbroken and with Safari Download Manager plugin (or other one like it) installed. So even if you just link, it will always play. And the reason why all videos play at full screen is because the iOS instantiate Quicktime to play it.
For instance, could a web app access the mic on an iPhone and transmit voice back to a server?
Or is it possible to build Safari extensions for the iPhone that can operate transparently on a web page? For instance, is it possible to build an extension that removed ads from Google result pages for the iPhone, without the user clicking any buttons to activate the ad-removal functionality?
You pretty much hit the main limitations.
You have no access to hardware that's not supported by HTML5 (geolocation is, but things such as acceleration and audio/video recording are not).
You can't build Safari extensions for the iPhone at this time, you can only use JavaScript like usual.
Some frameworks like PhoneGap make attempts to provide more hardware features via a native app container, but it appears Apple is trying to prevent those apps from going on the App Store, to some extent.