media.captureVideo() issues in build 1239

Glad to see there’s some cross platform video capture getting started… A MUCH appreciated feature. But I ran into a couple issues…

  • I have an android device running 2.3.6 and although it shows a video capture interface, and although even.completed is set, the url returned is blank (“file:///”) with lots of angry chatter showing in the adb log. (The example as shown on the doc page doesn’t work on 2.3.6 apparently). Looking at Android docs, it looks like the android video capabilities didn’t start to get really robust until android 3.0, but it would be good to know the low end device media.captureVideo would work for on android.

  • There’s virtually no ability to customize the video capture process. It looks like users can take 30 minute multi gigabyte videos in HD quality, and the app has no control over it. In looking at iOS docs, cocoa programmers get to preset a video capture quality (high, med, low), and a max time duration - both of which would be of great use to coders trying to constrain the amount of video data they would have to send back and forth between phones and servers.

  • A nice touch would be a mechanism to grab a video thumbnail, of the first frame, as a png or jpg… (But there’s not a lot of point it it’s a 5 GB video that will choke my app / server ).

A little more refinement, and media.captureVideo will be pretty darn “nifty”…

Thanks for your report.  Look for a few fixes to come in the upcoming days!

Does corona now have the ability to take and capture video to the camera similar to taking pictures and saving or retrieving from the camera roll? If so, is there documentation yet?

Thanks.

Yes and yes.

To select a video you use 

http://docs.coronalabs.com/daily/api/library/media/selectVideo.html

and to capture a video use

http://docs.coronalabs.com/daily/api/library/media/captureVideo.html

Also note that

http://docs.coronalabs.com/daily/api/library/media/show.html

has been deprecated.

There is now the

http://docs.coronalabs.com/daily/api/library/media/selectPhoto.html

and 

http://docs.coronalabs.com/daily/api/library/media/capturePhoto.html

apis instead.

Can a captureVideo or selectVideo be saved to the systemDocuments folder? If so, is there an example of how to do this?

Thanks.

oh my!! And I was leaning towards using Titanium for an app that I want to have a lot of video functionality (heresy I know) - with this, I may be able to dodge all that .js! :smiley:

J

Is there a way to grab the first frame or take a screen capture of the video to make a thumbnail???

Thanks.

Posted elsewhere, but +1 on the quality and max duration

Hi,

As of build 1245, you will be able to set the preferred max duration and preferred quality.  On Android there are some Camera apps that don’t respect those settings so what we’ve also added actual duration and size of the video that was captured/selected.  For example what you can do is to have the user retake the video if the length of the video is too long before uploading it to your server.

Currently you can not get a thumbnail of the video and you also can’t specify a directory to save your video to.

Thanks for your report.  Look for a few fixes to come in the upcoming days!

Does corona now have the ability to take and capture video to the camera similar to taking pictures and saving or retrieving from the camera roll? If so, is there documentation yet?

Thanks.

Yes and yes.

To select a video you use 

http://docs.coronalabs.com/daily/api/library/media/selectVideo.html

and to capture a video use

http://docs.coronalabs.com/daily/api/library/media/captureVideo.html

Also note that

http://docs.coronalabs.com/daily/api/library/media/show.html

has been deprecated.

There is now the

http://docs.coronalabs.com/daily/api/library/media/selectPhoto.html

and 

http://docs.coronalabs.com/daily/api/library/media/capturePhoto.html

apis instead.

Can a captureVideo or selectVideo be saved to the systemDocuments folder? If so, is there an example of how to do this?

Thanks.

oh my!! And I was leaning towards using Titanium for an app that I want to have a lot of video functionality (heresy I know) - with this, I may be able to dodge all that .js! :smiley:

J

Is there a way to grab the first frame or take a screen capture of the video to make a thumbnail???

Thanks.

Posted elsewhere, but +1 on the quality and max duration

Hi,

As of build 1245, you will be able to set the preferred max duration and preferred quality.  On Android there are some Camera apps that don’t respect those settings so what we’ve also added actual duration and size of the video that was captured/selected.  For example what you can do is to have the user retake the video if the length of the video is too long before uploading it to your server.

Currently you can not get a thumbnail of the video and you also can’t specify a directory to save your video to.