getVideoDecoderSupported method

Future<ZegoPlayerGetVideoDecoderSupportedResult> getVideoDecoderSupported(
  1. ZegoVideoCodecID codecID,
  2. {ZegoVideoCodecBackend? codecBackend}
)

Whether the specified video decoding type and implementation are supported.

Available since: 3.23.0 Description: Whether the specified video decoding is supported depends on the following aspects: whether the hardware model supports hard decoding, whether the performance of the hardware model supports soft decoding, and whether the SDK includes the decoding module. When to call: After creating the engine. Caution: It is recommended that users call this interface to obtain the H.265 decoding support capability before pulling the H.265 stream. If it is not supported, the user can pull the stream of other encoding formats, such as H.264.

  • codecID Video codec id. Required: Yes.
  • codecBackend Backend implementation of decoder. Required: Yes.
  • Returns Results of get video decoder supported.

Implementation

Future<ZegoPlayerGetVideoDecoderSupportedResult> getVideoDecoderSupported(
    ZegoVideoCodecID codecID,
    {ZegoVideoCodecBackend? codecBackend}) async {
  return await ZegoExpressImpl.instance
      .getVideoDecoderSupported(codecID, codecBackend: codecBackend);
}