Skip to content

Picker is requesting camera access for record audio #572

Open
@aimalkhantoru

Description

@aimalkhantoru

Picker Requests Camera Access for Audio Recording Option

Expected Behavior

The picker should not request camera access when selecting the audio recording option. Permissions should only be requested after the record button is clicked.

Current Behavior

The picker requests camera access even when choosing the audio recording option and prompts for permissions before the record button is clicked.

Steps to Reproduce

window.addEventListener('DOMContentLoaded', function () {
  const apikey = 'YOUR_API_KEY';
  const client = filestack.init(apikey);
  const options = {
    maxFiles: 20,
    fromSources: ['local_file_system', 'audio', 'video', ],
    uploadInBackground: false,
    onOpen: () => console.log('opened!'),
    onUploadDone: (res) => console.log(res),
  };
  client.picker(options).open();
});

Additional Screenshots

Screenshot 2024-09-22 at 12 25 58 PM

Your Environment

  • Version used: 3.31.0 and any older version
  • Browser Name and Version: Chrome v128.0.6613.121
  • Operating System and Version: macOS Sonoma 14.3 (desktop)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions