setup static method
setup encoder
Implementation
static Future<void> setup(
{required int width,
required int height,
required int fps,
required int videoBitrate,
required ProfileLevel profileLevel,
required int audioChannels,
required int audioBitrate,
required int sampleRate,
required String filepath}) async {
_createIntermediateDirectories(filepath);
FlutterQuickVideoEncoder.width = width;
FlutterQuickVideoEncoder.height = height;
FlutterQuickVideoEncoder.fps = fps;
FlutterQuickVideoEncoder.audioChannels = audioChannels;
FlutterQuickVideoEncoder.sampleRate = sampleRate;
FlutterQuickVideoEncoder.filepath = filepath;
return await _invokeMethod('setup', {
'width': width,
'height': height,
'fps': fps,
'videoBitrate': videoBitrate,
'profileLevel': profileLevel.toString().split('.')[1],
'audioChannels': audioChannels,
'audioBitrate': audioBitrate,
'sampleRate': sampleRate,
'filepath': filepath,
});
}