Agora Java API Reference for Android

Public Member Functions | Public Attributes | List of all members
io.agora.rtc2.video.CodecCapInfo Class Reference

The codec capability of the SDK. More...

## Public Member Functions
| CodecCapInfo (int codecType, int codecCapMask, CodecCapLevels levels)
void | SetCodecType (int codecType)
void | SetCodecCapMask (int codecCapMask)

## Public Attributes
int | codecType
int | codecCapMask
CodecCapLevels | codecLevels

## Detailed Description

The codec capability of the SDK.

## Member Data Documentation

## ◆ codecType

int io.agora.rtc2.video.CodecCapInfo.codecType

The video codec types:

- 1: VP8
- 2: H.264.
- 3: (Default) H.265.

## ◆ codecCapMask

int io.agora.rtc2.video.CodecCapInfo.codecCapMask

The bit mask of the codec type:

- (0): The device does not support encoding or decoding.
- (1 << 0): The device supports hardware decoding.
- (1 << 1): The device supports hardware encoding.
- (1 << 2): The device supports software decoding.
- (1 << 3): The device supports software ecoding.

## ◆ codecLevels

CodecCapLevels io.agora.rtc2.video.CodecCapInfo.codecLevels

Codec capability of the SDK. See `CodecCapLevels`.