Skip to content

Conversation

jasonpraful
Copy link

Changes

  • Update useVoiceVisualizer() hook to accept and use mediaRecorderOptions when creating MediaRecorder instance.

Usage

const recorderControls = useVoiceVisualizer({
  mediaRecorderOptions: {
    mimeType: 'audio/mp4',
    bitsPerSecond: 128000,
  }
});

Notes

Hook now validates mimeType when passed and throws an error if the specified mimeType is not supported by the browser.

Closes: #38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update hook to allow supporting custom mime-types/config options for MediaRecorder
1 participant