How to show device camera's data on a scene

In an android game, I want to start device’s camera and let player see the camera input inside a scene. Does anyone know how to do that?

@26_terry I bet you need to use native code on each platform. Cocos2d-x will not be able to do that.