nextcloud / nextcloud/external

Allow iframe options

Open
#186 10 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop enhancement
Dominant language
JavaScript
Stars
132
Forks
43
Avg merge
15m
Merged PRs (30d)
2

Description

Problem:
  1. Create link to a website that needs camera permission
  2. Permission will not be allowed as the <iframe> link does not contain the allow="" option.

For now, we've simply manually added it to https://github.com/nextcloud/external/blob/89d01a76290e0db8209b70a80a6fd9417353deee/templates/frame.php#L29

Like https://github.com/nextcloud/external/issues/143

but an option could be to insert a simple checkbox on the params like
'Allow camera and microphone? [x]' that would add allow="camera;microphone" into that line if checked.

I think these two are the most common options.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading templates/frame.php at the referenced iframe line and trace how the external-link parameters are assembled. Add a clear way to request camera and microphone permissions, and verify that the generated iframe includes the corresponding allow attribute when enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, php
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.