You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Description
I’d like to request a
mapVideoUrl
function, analogous to the existingmapImageUrl
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
The text was updated successfully, but these errors were encountered: