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

Feature Request: mapVideoUrl Utility #597

Open
hyesung99 opened this issue Dec 16, 2024 · 0 comments
Open

Feature Request: mapVideoUrl Utility #597

hyesung99 opened this issue Dec 16, 2024 · 0 comments

Comments

@hyesung99
Copy link

hyesung99 commented Dec 16, 2024

Description

I’d like to request a mapVideoUrl function, analogous to the existing mapImageUrl utility.

Currently, react-notion-x provides a mapImageUrl utility to customize image sources. However, I need a similar mechanism for videos. Due to Notion’s policies, some embedded videos fail to display properly under certain circumstances (related issue #520).

To work around this limitation, I’d like to host my video content in my own database and then modify the video src values using a mapVideoUrl function, similar to how mapImageUrl works for images.

While this isn’t a fundamental solution, this approach would allow me to circumvent the current restrictions by hosting videos externally and selectively rewriting their src values.

If there’s already a solution for this issue, or if I’ve misunderstood how mapImageUrl might be applied to images, please let me know.

If you think this feature is valuable and would be accepted, I’d be happy to submit a PR as well.

Notion Test Page ID

1532dc3ef514804783f8c0cc0c84d52e

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

No branches or pull requests

1 participant