setCurrentDramaIndex method
设置当前短剧集数索引
index 集数索引值
平台支持:
- ✅ Android:
IDJXWidget.setCurrentDramaIndex(index) - ✅ iOS:
DJXDrawVideoViewController.setCurrentPlayletEpisode(index)
Implementation
Future<bool> setCurrentDramaIndex(int index) async {
_ensureReady();
try {
final result = await PangrowthContent.setCurrentDramaIndexDramaSwipeFlow(
_swipeFlowId!,
index,
);
debugPrint('DramaSwipeFlowController: 设置当前集数到 $index - $_swipeFlowId');
return result;
} catch (e) {
debugPrint('DramaSwipeFlowController: 设置当前集数失败 - $e');
rethrow;
}
}