AgoraTextureCamera can be used directly as the video source. The AgoraTextureCamera.javaclass shows how to customize a textured video source. When using the ByteArray or ByteBuffer video source, the SDK receives the pixel format in YUV420p, NV21, or RGBA. AgoraBufferedCamera2 source = new AgoraBufferedCamera2(this) By default, the resolution is 640 x 480, video format is YUV420P and data type is ByteBuffer. The construct of AgoraBufferedCamera2 needs a Context and an optional CaptureParameter that defines the parameters of the camera and buffer type. The AgoraBufferedCamera2.java class shows how to customize the video source in ByteBuffer and ByteArray. Customize the Video Source with the Agora Component 1.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |