Merge pull request #2749 from krille-chan/krille/disable-record-voice-from-web
chore: Disable web voice message again
This commit is contained in:
commit
05b46e2ef9
2 changed files with 4 additions and 4 deletions
|
|
@ -61,8 +61,8 @@ class RecordingViewModelState extends State<RecordingViewModel> {
|
|||
|
||||
try {
|
||||
final codec =
|
||||
PlatformInfos
|
||||
.isAndroid && // Blocked by https://github.com/llfbandit/record/issues/560
|
||||
!PlatformInfos
|
||||
.isIOS && // Blocked by https://github.com/llfbandit/record/issues/560
|
||||
await audioRecorder.isEncoderSupported(AudioEncoder.opus)
|
||||
? AudioEncoder.opus
|
||||
: AudioEncoder.aacLc;
|
||||
|
|
|
|||
|
|
@ -35,8 +35,8 @@ abstract class PlatformInfos {
|
|||
static bool get supportsCustomImageResizer =>
|
||||
PlatformInfos.isWeb || PlatformInfos.isMobile;
|
||||
|
||||
/// Web could also record in theory but currently only wav which is too large
|
||||
static bool get platformCanRecord => (isMobile || isMacOS || isWeb);
|
||||
/// Web could also record in theory but currently creates broken opus
|
||||
static bool get platformCanRecord => (isMobile || isMacOS);
|
||||
|
||||
static String get clientName =>
|
||||
'${AppSettings.applicationName.value} ${isWeb ? 'web' : Platform.operatingSystem}${kReleaseMode ? '' : 'Debug'}';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue