media.captureVideo listener doesn't get called?

Hi,

I have an application where I capture video, for now purely testing on iOS 7, iPad Mini 1st gen. I’ve been on the latests daily builds, and it seems that in my project the listener for videoCapture doesn’t get called. I’m just doing a native.showAlert there.

So… I tested the sample code in the API docs, and if I capture a few seconds - black screen (on the device).

This is the code:

local onVideoComplete = function(event)     print("video session ended") end local function onComplete(event)     if event.completed then         media.playVideo(event.url, media.remoteSource, true, onVideoComplete)         print(event.duration)         print(event.fileSize)     end end if media.hasSource( media.Camera ) then     media.captureVideo( { listener = onComplete } ) else     native.showAlert( "Corona", "This device does not have a camera.", { "OK" } ) end  

I’ve attached a sample project as well. Can anyone verify, or tell me the Magic Incantation to make this work?

Cheers, Maarten

I’ll file a bug report, too…

Corona labs answered me, for the record:

media.remoteSource -> media.RemoteSource

A capital R typo in the samples.

Hi @Maarten,

Is this typo in a sample project, or in the documentation?

This appears correct:

http://docs.coronalabs.com/api/library/media/RemoteSource.html

If it’s in a sample project, I will mark it to be fixed in an upcoming release.

Thanks,

Brent

I’ll file a bug report, too…

Corona labs answered me, for the record:

media.remoteSource -> media.RemoteSource

A capital R typo in the samples.

Hi @Maarten,

Is this typo in a sample project, or in the documentation?

This appears correct:

http://docs.coronalabs.com/api/library/media/RemoteSource.html

If it’s in a sample project, I will mark it to be fixed in an upcoming release.

Thanks,

Brent