Hi everyone
I’ve successfully introduced Meteor here at work.
We have successfully used the mdg:camera package to take photos (on Android and iOS) but now the requirement is to add video capture also.
For the life of us, we cannot work out how to capture video on a mobile device. The browser works fine.
For Android, we’ve edited the AndroidManifest.xml and added the needed permissions:
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.RECORD_VIDEO" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-feature android:name="android.hardware.Camera" />
and on the device (after meteor run android-device) we see the permissions as:
“This application can access the following on your device:
take pictures and videos
record audio
modify or delete the contents of your USB storage
test access to protected storage
full network access
view network connections”
So I would have thought that all would be ok, but sadly, it is not working.
After looking at the mdg:camera package source code, I can see that the video stuff is not implemented in the web.browser/packages/mdg_camera.js that there is code that calls getUserMedia etc, but that same code is not present in the web.cordova/packages/mdg_camera.js, so I can understand why we don’t get video support in a cordova app.
However, I’ve got some other code using pure javascript (I won’t show it here, because the getUserMedia call always fails when run on the device) but works perfectly on the desktop web browser (and I might add, on Chrome on the device) - I get a video view.
In researching how to get this to work, I came across this video of a DevShop where the guys from Percolate Studios showed their Verso app.
As you can see at 08:25, the options on the device are Record [Video] [Audio] [Photo]
Do I need Crosswalk? I have no idea (from my limited Meteor experience) of how to integrate that but I have seen webpages saying that getUserMedia works when using Crosswalk - I think its the UIWebView thing?..
We’re ok with everything else for this app we’re developing, (we’ve successfully been able to upload images to S3 etc) but this video thing is causing us grief.
Any suggestions, tips, or pointers would be a magnificent help.
Thank you
Brad