Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k views
in Technique[技术] by (71.8m points)

How to convert android canvas to AgoraVideoFrame?

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?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...