-
Notifications
You must be signed in to change notification settings - Fork 27
Support localhost URLs for poster
#106
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
Comments
Planning on looking into this soon! 🙏🏻 |
👀 So it looks like something has changed in the underlying player and localhost URLs are now accepted, but... when using this with Next.js locally, Next.js doesn't accept So I think the ask at this point would be making sure that the poster image is loaded with crossorigin anonymous? Not sure how exactly that'd be achieved as a CSS image can't be marked as crossorigin though... |
Thinking about this a little more, and I think if we were going to do this we'd need to add a public API for setting what the |
Yah, that's true, I think blindly setting it to cross-origin always would be pretty breaking -- I suppose a second param for |
Fwiw, if #105 is a lighter lift, that also solves for our specific migration -- though, of course, both of these I suspect would be beneficial for others too. |
Closing the loop somewhat here, Next.js reverted the change that required images to be marked as cross-origin in dev, so this is no longer needed for what we're doing -- we can use localhost images just fine. As to whether this is a worthwhile thing to add support for anyway, I leave that with you (I suspect not). |
Sweet — thanks for letting me know! Sorry for not actioning this sooner, but I'm relieved that it's resolved in a way that didn't require expanding our API (just for long term maintenance reasons!). |
👋 It would be rather useful when developing sites locally if
localhost
URLs were to be supported for theposter
prop. I understand that relative URLs won't work due to the poster being rendered in the iframe (though in #105 I did throw out the suggestion of the React component handling the poster itself, in which case they would), but full URLs making use oflocalhost
should be doable?The text was updated successfully, but these errors were encountered: