media.captureVideo destination

I am wondering if I can use the media.captureVideo function in the same way as the media.capturePhoto function. Specifically, can I set a destination for my video much like I would with capturePhoto?

For example:

[lua]

media.capturePhoto( { listener = onPhotoComplete, destination = {baseDir = system.DocumentsDirectory, filename = “testPhoto.jpg”, type = “image”} } ) – this works

media.captureVideo( { listener = onVideoComplete, destination = {baseDir = system.DocumentsDirectory, filename = “testVideo.mp4”, type = “video”} } ) – does this work?

[/lua]

Thanks

Hi @zabace,

I don’t believe that destination table is supported in-line. I assume it saves it to the Documents directory by default? Where do you want to save it instead?

Brent

The documents directory is where I want it saved, but I can’t figure our how to specify a filename, like I would with a photo. 

Hi @zabace,

I don’t believe that destination table is supported in-line. I assume it saves it to the Documents directory by default? Where do you want to save it instead?

Brent

The documents directory is where I want it saved, but I can’t figure our how to specify a filename, like I would with a photo.