seekTo method

Future<bool> seekTo(
  1. int time
)

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

平台支持:

  • ✅ Android: IDJXWidget.seekTo(time)
  • ❌ iOS: DramaHome不支持iOS

🔵 Android 独有方法

Implementation

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