setRenderFrameCallbackConfig method

Future<void> setRenderFrameCallbackConfig(
  1. bool mAudioData,
  2. bool mVideoData
)

软解码时生效,是否只返回底层音频数据地址,mAudioDataAddr默认为false, 是否只返回底层视频数据地址,默认为true

Implementation

Future<void> setRenderFrameCallbackConfig(
    bool mAudioData, bool mVideoData) async {
  var map = {"mAudioData": mAudioData, "mVideoData": mVideoData};
  return FlutterAliPlayerFactory.methodChannel.invokeMethod(
      'setRenderFrameCallbackConfig', wrapWithPlayerId(arg: map));
}