I am working on a camera app. I am using camera 2 API and my camera preview is rendered by onDraw()
of SurfaceView
, (took help from here), exactly same as Opencamera.
Now I need to send this canvas to remote, using Agora custom video source. Refer docs here
Documentation says, we need to push AgoraVideoFrame
, so I am struggling in converting canvas to AgoraVideoFrame
.
Basically I have to transmit, this preview to other device. Any suggestions?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…