Record the camera and send the video to a server

Hi,

Is there any way to record the camera,and send the live video,or the recorded video (with a couple of seconds delay) to a wowza server?

Thanks!

Hello, So on apple you will be able to use the implement camera BUT on android you cant at the moment. Im not sure about the sending to server part tho.

While on iOS we support using the camera as a video fill to an object, you cannot in any way capture that data to send to a server. Both iOS and Android you can use native.captureVideo() to record a video through the device’s built in dialogs and then grab an access to the file URL and copy that to your app’s sandbox and then upload it to a server.

Rob

Wait, you can access the camera on Android? When was this implemented? I’ve seen so many posts say you can’t.

Hi @SonicX278,

Well, it depends on what you want to do with the camera. The posts you may be referring to mean that you can’t use the camera as a “live video feed” which is filled into a display object on the screen… that is for iOS only. But as for using the camera to take photos and videos, that feature has been around for a long time:

https://docs.coronalabs.com/api/library/media/capturePhoto.html

https://docs.coronalabs.com/api/library/media/captureVideo.html

Brent

Hello, So on apple you will be able to use the implement camera BUT on android you cant at the moment. Im not sure about the sending to server part tho.

While on iOS we support using the camera as a video fill to an object, you cannot in any way capture that data to send to a server. Both iOS and Android you can use native.captureVideo() to record a video through the device’s built in dialogs and then grab an access to the file URL and copy that to your app’s sandbox and then upload it to a server.

Rob

Wait, you can access the camera on Android? When was this implemented? I’ve seen so many posts say you can’t.

Hi @SonicX278,

Well, it depends on what you want to do with the camera. The posts you may be referring to mean that you can’t use the camera as a “live video feed” which is filled into a display object on the screen… that is for iOS only. But as for using the camera to take photos and videos, that feature has been around for a long time:

https://docs.coronalabs.com/api/library/media/capturePhoto.html

https://docs.coronalabs.com/api/library/media/captureVideo.html

Brent