startRecord method
开始录像
Implementation
Future<bool> startRecord(
{RecordEncoderType encoderType = RecordEncoderType.G711}) async {
if (source == null) return false;
var result = await app_player_channel.invokeMethod(
"app_player_start_record", [this.textureId, encoderType.index]);
if (result == true) {
this.recordStatus = RecordStatus.PLAY;
}
return result;
}