setStreamDelayTime method

Future<void> setStreamDelayTime(
  1. int trackIdx,
  2. int time
)

设置某路流相对于主时钟的延时时间 默认是0, 目前只支持外挂字幕

Implementation

Future<void> setStreamDelayTime(int trackIdx, int time) {
  var map = {'index': trackIdx, 'time': time};
  return FlutterAliPlayerFactory.methodChannel
      .invokeMethod("setStreamDelayTime", wrapWithPlayerId(arg: map));
}