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 {
|
try {
|
||||||
final codec =
|
final codec =
|
||||||
PlatformInfos
|
!PlatformInfos
|
||||||
.isAndroid && // Blocked by https://github.com/llfbandit/record/issues/560
|
.isIOS && // Blocked by https://github.com/llfbandit/record/issues/560
|
||||||
await audioRecorder.isEncoderSupported(AudioEncoder.opus)
|
await audioRecorder.isEncoderSupported(AudioEncoder.opus)
|
||||||
? AudioEncoder.opus
|
? AudioEncoder.opus
|
||||||
: AudioEncoder.aacLc;
|
: AudioEncoder.aacLc;
|
||||||
|
|
|
||||||
|
|
@ -35,8 +35,8 @@ abstract class PlatformInfos {
|
||||||
static bool get supportsCustomImageResizer =>
|
static bool get supportsCustomImageResizer =>
|
||||||
PlatformInfos.isWeb || PlatformInfos.isMobile;
|
PlatformInfos.isWeb || PlatformInfos.isMobile;
|
||||||
|
|
||||||
/// Web could also record in theory but currently only wav which is too large
|
/// Web could also record in theory but currently creates broken opus
|
||||||
static bool get platformCanRecord => (isMobile || isMacOS || isWeb);
|
static bool get platformCanRecord => (isMobile || isMacOS);
|
||||||
|
|
||||||
static String get clientName =>
|
static String get clientName =>
|
||||||
'${AppSettings.applicationName.value} ${isWeb ? 'web' : Platform.operatingSystem}${kReleaseMode ? '' : 'Debug'}';
|
'${AppSettings.applicationName.value} ${isWeb ? 'web' : Platform.operatingSystem}${kReleaseMode ? '' : 'Debug'}';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue