stop method
停止卡片视频
调用 SDK 的 stopDramaCard 方法,原生层会调用卡片的 stop 方法。
Implementation
Future<void> stop() async {
_ensureReady();
try {
final result = await PangrowthContent.stopDramaCard(_cardId!);
if (result) {
debugPrint('DramaCardController: 卡片已停止 - $_cardId');
}
} catch (e) {
debugPrint('DramaCardController: 停止卡片失败 - $e');
rethrow;
}
}