setSpeed method

Future<bool> setSpeed(
  1. int speed, {
  2. String scope = 'episode',
})

设置播放倍速 speed 播放速度(100表示1.0x,150表示1.5x,200表示2.0x) scope 倍速作用范围,episode 表示当前集、drama 表示整部短剧

Implementation

Future<bool> setSpeed(int speed, {String scope = 'episode'}) async {
  _ensureReady();
  final double speedValue = speed / 100.0;
  return await PangrowthContent.setSpeedPlay(
    _playerId!,
    speedValue,
    scope: scope,
  );
}