Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission when initiate recording working on dev but no prompt or permission on production server hosted on intranet #445

Open
vaibhavrajsinghSys opened this issue Nov 30, 2024 · 1 comment
Labels

Comments

@vaibhavrajsinghSys
Copy link

Package version
5.1.2

Environment

  • OS: Linux
  • Browser : All

Describe the bug
All the things are working correct on all the platforms when the project is build and deployed on our local dev server, but when i deploy a production build on their server and then try to start recording the audio nothing happens.
They have hosted the web app on their local server of Apache/Linux and for them it is not working.

A clear and concise description of what the bug is.

  • Issue is that the user is not able to start the recording even when all the things are same for production and dev.

`Future _start() async {
await stop();

try {
  
    const encoder = AudioEncoder.wav;

    if (!await _isEncoderSupported(encoder)) {
      Globalsnackbardisplayer().displaySnackBar('${encoder.name}is not supported.');
      if (widget.selectedAudio != null) {
      widget.selectedAudio!(
        widget.audioPlayerFilePath,
        hadPermission,
      );
    }

    Navigator.of(context).pop();
      return;
    }

    

    const config = RecordConfig(encoder: encoder, numChannels: 1);

    // Record to file
    await recordFile(_audioRecorder, config);

    _recordDuration = 0;
    widget.audioPlayerFilePath = null;
    hadPermission = true;

    _startTimer();
  
} catch (e) {
  Globalsnackbardisplayer().displaySnackBar(e.toString());
  if (widget.selectedAudio != null) {
    widget.selectedAudio!(
      widget.audioPlayerFilePath,
      false,
    );
  }
  Navigator.of(context).pop();
}

}`

To Reproduce

  • Dont have any
@llfbandit
Copy link
Owner

Thanks for reporting.
Recorder must run in secured context otherwise it won't run at all.

@llfbandit llfbandit added the web label Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants