I've tried the solution described here and here, namely copying a QuickTime movie to ~/Library/Application Support/iPhone Simulator/User/Media/DCIM/100APPLE/VID_0001.m4v
, but this doesn't seem to do anything, and I'm guessing something's changed since iOS 3.2 to make it not work.
Note that I'd very much prefer a solution that doesn't involve adding code to my app, unless that really is the only way to do it.
ETA: I know that it's possible to include video files as a resource; what I want is to add video files to the camera roll -- as can be done with photos by (for instance) saving images from Safari -- so I can test functionality that involves picking media files.
Updated again: If somebody can definitively tell me it's not possible, with references, that would be helpful too.
It's very simple you just drag any . MOV file to your simulator. Now it will be opened in Safari browser.
# Open application folder in Finder First, copy the path to the app folder from Xcode console. Then open Finder, click on Go -> Go to Folder and paste the application directory path. You will now be able to browse all the files in your application folder.
Camera functionality is not available in any iOS version and in any Simulator. You will have to use a real device for camera testing purposes.
I found a way that seems to work in most versions of the simulator (confirmed for 6.1):
.m4v
file from your file system onto the simulator window. The video will now be playing in safari.You're done!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With