snapshot method
master-m3u8 === end snapshot
Implementation
/// snapshot
Future<void> snapshot(
{required String path,
void Function(bool success, String filePath)? completion}) async {
if (path.isEmpty) {
TTFLogger.i('FlutterTTSDKManager', 'snapshot path is empty');
return;
}
// Native may finish synchronously when a frame is already available, so
// register the callback before crossing the method-channel boundary.
snapshotCompletion = completion;
await engineInstanceMethodChannel.invokeMethod('snapshot', path);
}