platformFailureMessage function
Implementation
String platformFailureMessage(PlatformFailure failure) => switch (failure) {
PlatformFailure.cancelled => '已取消',
PlatformFailure.permissionDenied => '权限被拒绝,请在系统设置中允许访问',
PlatformFailure.unsupported => '当前平台暂不支持此功能',
PlatformFailure.invalidInput => '媒体路径或录制时长无效',
PlatformFailure.fileNotFound => '本地文件不存在',
PlatformFailure.emptyFile => '无法发送空文件:该文件大小为 0KB,请选择有内容的文件后重试。',
PlatformFailure.noInputDevice => '未找到麦克风设备',
PlatformFailure.initializationFailed => '无法初始化媒体,请检查文件和设备',
PlatformFailure.operationFailed => '媒体操作失败,请重试',
PlatformFailure.disposed => '媒体服务已关闭',
};