Streaming the camera feed is possible using the surface mirroring functionality exposed through SceneView. At a high level, streaming the camera feed would require:
Get an input Surface from an Android MediaCodec that will allow the rendered frames to be encoded as a video stream.
Run the MediaCodec encoder pipeline to produce encoded video packets that can be used in a video streaming protocol. You may find more relevant information on working with MediaCodec for streaming video on Stack Overflow
I am trying to stream the camera feed of the sceneform using RTMP as there is no support for such .What is the way for achieving that?