GitbookIO / GitbookIO/integrations
Support microphone permissions inside of iframes
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 131
- Forks
- 96
- Avg merge
- 7h 8m
- Merged PRs (30d)
- 31
Description
-index.tsx
import { createIntegration, createComponent } from '@gitbook/runtime';
const hallwayEmbedBlock = createComponent({
componentId: 'hallway-embed',
initialState: {},
render: async ({ props, state }) => {
return (
<block>
<webframe
source={{ url: "https://hallway.ai/embed/a0a6b76d-9237-4114-9623-d8ee86de1233" }}
aspectRatio={16/9}
/>
</block>
);
}
});
export default createIntegration({
components: [helloWorldBlock, hallwayEmbedBlock]
});
Example:
https://hallway.gitbook.io/joinhallway-docs/
[Violation] Permissions policy violation: microphone is not allowed in this document.
This error when accessing the microphone.
Proposed change
- introduce a configuration setting for integrations to allow camera and microphone access.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the integration example in -index.tsx and trace how the webframe and integration configuration are handled. Confirm how camera and microphone permissions should be configured for embedded content, then verify the Hallway example can access the microphone without the permissions-policy violation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend, security
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100