seekTo method

Future<bool> seekTo(
  1. int time
)

跳转到指定播放位置 time 跳转位置(毫秒)

平台支持:

  • ✅ Android: IDJXWidget.seekTo(time)
  • ✅ iOS: DJXDrawVideoViewController.seekVideoToMSeconds(time)

Implementation

Future<bool> seekTo(int time) async {
  _ensureReady();
  try {
    final result = await PangrowthContent.seekToDramaSwipeFlow(
      _swipeFlowId!,
      time,
    );
    debugPrint('DramaSwipeFlowController: 跳转播放进度到 ${time}ms - $_swipeFlowId');
    return result;
  } catch (e) {
    debugPrint('DramaSwipeFlowController: 跳转播放进度失败 - $e');
    rethrow;
  }
}